1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-23 17:02:25 +03:00

Remove knock state on join (#4977)

Signed-off-by: Svajunas Budrys <svajunas.budrys.sb@gmail.com>
This commit is contained in:
Svajūnas Budrys
2025-09-04 12:31:26 +03:00
committed by GitHub
parent b313eb5912
commit ccd825fb39
2 changed files with 47 additions and 1 deletions

View File

@@ -317,7 +317,10 @@ export class SyncAccumulator {
break;
case Category.Join:
if (this.inviteRooms[roomId]) {
if (this.knockRooms[roomId]) {
// delete knock state on join
delete this.knockRooms[roomId];
} else if (this.inviteRooms[roomId]) {
// (1)
// was previously invite, now join. We expect /sync to give
// the entire state and timeline on 'join', so delete previous