1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-10 21:23:02 +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:
Kegan Dougal
2017-02-14 15:42:53 +00:00
parent c7fdbd1c64
commit a28c03a2f9
2 changed files with 2 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
/*
Copyright 2015, 2016, 2017 OpenMarket Ltd
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@@ -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) => {