Skip to main content

tuwunel_admin/query/room_state_cache/
get_left_count.rs

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