only apply the invite when joining
This commit is contained in:
parent
847738a76c
commit
827075bc37
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ export class Room extends EventEmitter {
|
|||
log.set("newKeys", newKeys.length);
|
||||
}
|
||||
let summaryChanges = this._summary.data.applySyncResponse(roomResponse, membership);
|
||||
if (invite) {
|
||||
if (membership === "join" && invite) {
|
||||
summaryChanges = summaryChanges.applyInvite(invite);
|
||||
}
|
||||
let roomEncryption = this._roomEncryption;
|
||||
|
|
Reference in a new issue