This commit is contained in:
Kegan Dougal 2021-11-24 15:19:54 +00:00
parent 6140301d9e
commit 201ca20646
3 changed files with 2 additions and 2 deletions

View file

@ -36,6 +36,7 @@ export class PlaceholderRoomTileViewModel extends BaseTileViewModel {
}
compare(other) {
// TODO: factor this out with the compare(other) of the room tile as it does this check as well.
if (other._room.index !== undefined) {
return this._room.index > other._room.index ? 1 : -1;
}

View file

@ -41,7 +41,7 @@ export class RoomTileViewModel extends BaseTileViewModel {
// sync v3 has its own ordering, use it if we have an index
if (this._room.index !== undefined && other._room.index !== undefined) {
return this._room.index > other._room.index ? 1 : -1;;
return this._room.index > other._room.index ? 1 : -1;
}
/*

View file

@ -401,7 +401,6 @@ export class Session {
room.setInvite(invite);
}
}
this._rooms.add(room.id, room);
}
dispose() {