From 1258aaee7c70c4ae870e71a69ccc4d25e79ec861 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 5 May 2021 17:03:52 +0200 Subject: [PATCH] brevity --- src/matrix/room/Room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index a4dcff0a..c9d08e05 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -354,7 +354,7 @@ export class Room extends EventEmitter { let emitChange = false; if (summaryChanges) { // if we joined the room, we can't have an invite anymore - if (summaryChanges.membership === "join" && this._summary.data.membership !== "join") { + if (summaryChanges.membership === "join" && this.membership !== "join") { this._invite = null; } this._summary.applyChanges(summaryChanges);