1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Fire a 'Room.timelineReset' event when we get a gappy sync

We need to reset things at the UI level when we get a gappy sync, so give the
clients something to listen for.

Also add a bunch of tests for that bit of code.
This commit is contained in:
Richard van der Hoff
2016-02-25 13:15:18 +00:00
parent 46912431cc
commit abf908b14f
4 changed files with 141 additions and 18 deletions

View File

@@ -84,7 +84,8 @@ SyncApi.prototype.createRoom = function(roomId) {
timelineSupport: client.timelineSupport,
});
reEmit(client, room, ["Room.name", "Room.timeline", "Room.redaction",
"Room.receipt", "Room.tags"]);
"Room.receipt", "Room.tags",
"Room.timelineReset"]);
this._registerStateListeners(room);
return room;
};