diff --git a/src/domain/session/room/timeline/tiles/CallTile.js b/src/domain/session/room/timeline/tiles/CallTile.js index 1758e6bb..b762cef4 100644 --- a/src/domain/session/room/timeline/tiles/CallTile.js +++ b/src/domain/session/room/timeline/tiles/CallTile.js @@ -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); }