mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-22 18:21:39 +01:00
when rejoining, room will be archived so consider any non-join a rejoin
This commit is contained in:
parent
1258aaee7c
commit
07535eedca
@ -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…
x
Reference in New Issue
Block a user