Start work on rendering channel participants in collab panel

Co-authored-by: mikayla <mikayla@zed.dev>
This commit is contained in:
Max Brunsfeld
2023-08-02 15:09:37 -07:00
co-authored by mikayla
parent a9de73739a
commit fca8cdcb8e
9 changed files with 192 additions and 60 deletions
-20
View File
@@ -2200,26 +2200,6 @@ impl Database {
))
}
async fn get_channel_members_for_room(
&self,
room_id: RoomId,
tx: &DatabaseTransaction,
) -> Result<Vec<UserId>> {
let db_room = room::Model {
id: room_id,
..Default::default()
};
let channel_users =
if let Some(channel) = db_room.find_related(channel::Entity).one(tx).await? {
self.get_channel_members_internal(channel.id, tx).await?
} else {
Vec::new()
};
Ok(channel_users)
}
// projects
pub async fn project_count_excluding_admins(&self) -> Result<usize> {