mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
sort by userId, sorting order needs to be stable
This commit is contained in:
parent
3bb889ed9c
commit
af5cc0f62b
@ -51,7 +51,7 @@ export class CallTile extends SimpleTile {
|
||||
emitChange,
|
||||
mediaRepository: this.getOption("room").mediaRepository
|
||||
})),
|
||||
).sortValues((a, b) => a.avatarTitle < b.avatarTitle ? -1 : 1);
|
||||
).sortValues((a, b) => a.userId.localeCompare(b.userId));
|
||||
}
|
||||
|
||||
get confId() {
|
||||
@ -118,6 +118,10 @@ class MemberAvatarViewModel extends ViewModel {
|
||||
return this.getOption("member");
|
||||
}
|
||||
|
||||
get userId() {
|
||||
return this._member.userId;
|
||||
}
|
||||
|
||||
get avatarLetter() {
|
||||
return avatarInitials(this._member.member.name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user