remove unnecessary active_local_joined_users_in_room
state_cache accessor
the underlying bug has been fixed Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
7f5b59afbb
commit
0524e6ed52
3 changed files with 8 additions and 42 deletions
|
@ -281,22 +281,12 @@ impl Service {
|
|||
}
|
||||
|
||||
#[tracing::instrument(skip(self))]
|
||||
/// Returns an iterator of all our local users in a room who are active (not
|
||||
/// deactivated, not guest)
|
||||
/// Returns an iterator of all our local joined users in a room who are
|
||||
/// active (not deactivated, not guest)
|
||||
pub fn active_local_users_in_room<'a>(&'a self, room_id: &RoomId) -> impl Iterator<Item = OwnedUserId> + 'a {
|
||||
self.db.active_local_users_in_room(room_id)
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip(self))]
|
||||
/// Returns an iterator of all our local users joined in a room who are
|
||||
/// active (not deactivated, not guest) and have a joined membership state
|
||||
/// in the room
|
||||
pub fn active_local_joined_users_in_room<'a>(
|
||||
&'a self, room_id: &'a RoomId,
|
||||
) -> impl Iterator<Item = OwnedUserId> + 'a {
|
||||
self.db.active_local_joined_users_in_room(room_id)
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip(self))]
|
||||
pub fn room_invited_count(&self, room_id: &RoomId) -> Result<Option<u64>> { self.db.room_invited_count(room_id) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue