Show cursors for remote participants
This commit is contained in:
parent
26a3f68080
commit
0ca9f286c6
6 changed files with 122 additions and 4 deletions
|
@ -442,4 +442,13 @@ impl CollaborationHub for ChannelBufferCollaborationHub {
|
|||
) -> &'a HashMap<u64, ParticipantIndex> {
|
||||
self.0.read(cx).user_store().read(cx).participant_indices()
|
||||
}
|
||||
|
||||
fn user_names(&self, cx: &AppContext) -> HashMap<u64, SharedString> {
|
||||
let user_ids = self.collaborators(cx).values().map(|c| c.user_id);
|
||||
self.0
|
||||
.read(cx)
|
||||
.user_store()
|
||||
.read(cx)
|
||||
.participant_names(user_ids, cx)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue