Following face piles finally take their first breath
This commit is contained in:
parent
4ffc8cd9fd
commit
4513c40993
3 changed files with 21 additions and 18 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue