mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +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,
|
emitChange,
|
||||||
mediaRepository: this.getOption("room").mediaRepository
|
mediaRepository: this.getOption("room").mediaRepository
|
||||||
})),
|
})),
|
||||||
).sortValues((a, b) => a.avatarTitle < b.avatarTitle ? -1 : 1);
|
).sortValues((a, b) => a.userId.localeCompare(b.userId));
|
||||||
}
|
}
|
||||||
|
|
||||||
get confId() {
|
get confId() {
|
||||||
@ -118,6 +118,10 @@ class MemberAvatarViewModel extends ViewModel {
|
|||||||
return this.getOption("member");
|
return this.getOption("member");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get userId() {
|
||||||
|
return this._member.userId;
|
||||||
|
}
|
||||||
|
|
||||||
get avatarLetter() {
|
get avatarLetter() {
|
||||||
return avatarInitials(this._member.member.name);
|
return avatarInitials(this._member.member.name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user