mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
Sort collaborators in titlebar alphabetically instead of by replica id
This commit is contained in:
parent
14497027d4
commit
981b3a459f
1 changed files with 1 additions and 3 deletions
|
@ -572,15 +572,13 @@ impl CollabTitlebarItem {
|
|||
room: &ModelHandle<Room>,
|
||||
cx: &mut RenderContext<Self>,
|
||||
) -> Vec<ElementBox> {
|
||||
let project = workspace.read(cx).project().read(cx);
|
||||
|
||||
let mut participants = room
|
||||
.read(cx)
|
||||
.remote_participants()
|
||||
.values()
|
||||
.cloned()
|
||||
.collect::<Vec<_>>();
|
||||
participants.sort_by_key(|p| Some(project.collaborators().get(&p.peer_id)?.replica_id));
|
||||
participants.sort_by_cached_key(|p| p.user.github_login.clone());
|
||||
|
||||
participants
|
||||
.into_iter()
|
||||
|
|
Loading…
Reference in a new issue