only apply the invite when joining

This commit is contained in:
Bruno Windels 2021-04-23 18:05:46 +02:00
parent 847738a76c
commit 827075bc37

View file

@ -196,7 +196,7 @@ export class Room extends EventEmitter {
log.set("newKeys", newKeys.length); log.set("newKeys", newKeys.length);
} }
let summaryChanges = this._summary.data.applySyncResponse(roomResponse, membership); let summaryChanges = this._summary.data.applySyncResponse(roomResponse, membership);
if (invite) { if (membership === "join" && invite) {
summaryChanges = summaryChanges.applyInvite(invite); summaryChanges = summaryChanges.applyInvite(invite);
} }
let roomEncryption = this._roomEncryption; let roomEncryption = this._roomEncryption;