Show cursors for remote participants

This commit is contained in:
Conrad Irwin 2024-01-16 21:43:44 -07:00
parent 26a3f68080
commit 0ca9f286c6
6 changed files with 122 additions and 4 deletions

View file

@ -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)
}
}