Don't remove room from store on leave

This commit is contained in:
N Pex 2023-03-16 08:17:29 +00:00
parent 379d733d33
commit 381ab6d84e
5 changed files with 120 additions and 641 deletions

View file

@ -458,7 +458,7 @@ export default {
return this.fullyReadMarker || this.room.getEventReadUpTo(this.$matrix.currentUserId, false);
},
fullyReadMarker() {
const readEvent = this.room.getAccountData("m.fully_read");
const readEvent = this.room && this.room.getAccountData("m.fully_read");
if (readEvent) {
return readEvent.getContent().event_id;
}