Highlight face pile which local user is following

This commit is contained in:
Julia 2023-02-09 14:38:43 -05:00
parent 1abb7794cb
commit 05e9615507
4 changed files with 46 additions and 32 deletions

View file

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