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

@ -1828,11 +1828,11 @@ impl Workspace {
None
}
pub fn is_following(&self, peer_id: PeerId) -> bool {
pub fn is_being_followed(&self, peer_id: PeerId) -> bool {
self.follower_states_by_leader.contains_key(&peer_id)
}
pub fn is_followed(&self, peer_id: PeerId) -> bool {
pub fn is_followed_by(&self, peer_id: PeerId) -> bool {
self.leader_state.followers.contains(&peer_id)
}