Following face piles finally take their first breath

This commit is contained in:
Julia 2023-02-07 19:08:35 -05:00
parent 4ffc8cd9fd
commit 4513c40993
3 changed files with 21 additions and 18 deletions

View file

@ -459,10 +459,10 @@ impl Room {
self.participant_user_ids.contains(&user_id)
}
pub fn follows(&self, leader_id: PeerId) -> Option<&[PeerId]> {
pub fn follows(&self, leader_id: PeerId) -> &[PeerId] {
self.follows_by_leader_id
.get(&leader_id)
.map(|v| v.as_slice())
.map_or(&[], |v| v.as_slice())
}
async fn handle_room_updated(