You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-01 04:43:29 +03:00
Remove TODO checks and change copyright
Manually tested and it appears that Synapse will indeed send down the complete state upon rejoining a room. \o/
This commit is contained in:
@@ -125,10 +125,6 @@ class SyncAccumulator {
|
||||
delete this.inviteRooms[roomId];
|
||||
}
|
||||
// (3)
|
||||
// TODO: Check that join 'state' is the same if you leave then
|
||||
// rejoin. We need to know if Synapse is instead returning
|
||||
// a delta from the old leave state. If it is, this means
|
||||
// we can NEVER delete 'leave' room data :/
|
||||
this._accumulateJoinState(roomId, data);
|
||||
break;
|
||||
case "leave":
|
||||
@@ -297,7 +293,6 @@ class SyncAccumulator {
|
||||
// about any previous room being in 'invite' or 'join' so we can
|
||||
// just omit mentioning it at all, even if it has previously come
|
||||
// down /sync.
|
||||
// TODO: Check if full state is given upon rejoin.
|
||||
leave: {},
|
||||
};
|
||||
Object.keys(this.inviteRooms).forEach((roomId) => {
|
||||
|
||||
Reference in New Issue
Block a user