forked from mystiq/hydrogen-web
when rejoining, room will be archived so consider any non-join a rejoin
This commit is contained in:
parent
1258aaee7c
commit
07535eedca
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ export class Room extends EventEmitter {
|
|||
/** @package */
|
||||
async writeSync(roomResponse, isInitialSync, {summaryChanges, decryptChanges, roomEncryption, retryEntries}, txn, log) {
|
||||
log.set("id", this.id);
|
||||
const isRejoin = summaryChanges.membership === "join" && this._summary.data.membership === "leave";
|
||||
const isRejoin = summaryChanges.membership === "join" && this.membership !== "join";
|
||||
if (isRejoin) {
|
||||
this._summary.tryRemoveArchive(txn);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue