Start work on rendering channel participants in collab panel
Co-authored-by: mikayla <mikayla@zed.dev>
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user