This commit is contained in:
Bruno Windels 2021-05-05 17:03:52 +02:00
parent f6957278c3
commit 1258aaee7c

View file

@ -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);