mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
only apply the invite when joining
This commit is contained in:
parent
847738a76c
commit
827075bc37
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user