Fix crash on unable to getContent of tombstoned room
This commit is contained in:
parent
cd5ae4cb7f
commit
ba0de8800a
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ class RoomList extends EventEmitter {
|
|||
this.matrixClient.getRooms().forEach((room) => {
|
||||
const { roomId } = room;
|
||||
const tombstone = room.currentState.events.get('m.room.tombstone');
|
||||
if (typeof tombstone !== 'undefined') {
|
||||
if (tombstone?.get('') !== undefined) {
|
||||
const repRoomId = tombstone.get('').getContent().replacement_room;
|
||||
const repRoomMembership = this.matrixClient.getRoom(repRoomId)?.getMyMembership();
|
||||
if (repRoomMembership === 'join') return;
|
||||
|
|
Loading…
Reference in a new issue