mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
don't open a room when already open
This commit is contained in:
parent
4fb3010676
commit
5d1bc61f61
@ -44,10 +44,12 @@ export class RoomTileViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
open() {
|
open() {
|
||||||
this._isOpen = true;
|
if (!this._isOpen) {
|
||||||
this._wasUnreadWhenOpening = this._room.isUnread;
|
this._isOpen = true;
|
||||||
this.emitChange("isOpen");
|
this._wasUnreadWhenOpening = this._room.isUnread;
|
||||||
this._emitOpen(this._room, this);
|
this.emitChange("isOpen");
|
||||||
|
this._emitOpen(this._room, this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
compare(other) {
|
compare(other) {
|
||||||
|
Loading…
Reference in New Issue
Block a user