don't open a room when already open

This commit is contained in:
Bruno Windels 2020-08-21 13:45:55 +02:00
parent 4fb3010676
commit 5d1bc61f61

View file

@ -44,10 +44,12 @@ export class RoomTileViewModel extends ViewModel {
}
open() {
this._isOpen = true;
this._wasUnreadWhenOpening = this._room.isUnread;
this.emitChange("isOpen");
this._emitOpen(this._room, this);
if (!this._isOpen) {
this._isOpen = true;
this._wasUnreadWhenOpening = this._room.isUnread;
this.emitChange("isOpen");
this._emitOpen(this._room, this);
}
}
compare(other) {