Skip to main content

tuwunel_admin/query/room_state_cache/
get_invite_count.rs

1use ruma::{OwnedRoomId, OwnedUserId};
2use tuwunel_core::Result;
3
4use crate::admin_command;
5
6#[admin_command]
7pub(super) async fn get_invite_count(
8	&self,
9	room_id: OwnedRoomId,
10	user_id: OwnedUserId,
11) -> Result {
12	let query = self
13		.services
14		.state_cache
15		.get_invite_count(&room_id, &user_id);
16
17	self.write_timed_query(query).await
18}