1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Fix member events breaking on timeline reset, 2

Re-use the same RoomState from the old live timeline so we re-use
all the same member objects etc, so all the listeners stay attached
This commit is contained in:
David Baker
2017-07-19 11:49:20 +01:00
parent e2599071c5
commit b33a47e253
4 changed files with 35 additions and 24 deletions

View File

@@ -2089,7 +2089,7 @@ MatrixClient.prototype.resetNotifTimelineSet = function() {
// know about /notifications, so we have no choice but to start paginating
// from the current point in time. This may well overlap with historical
// notifs which are then inserted into the timeline by /sync responses.
this._notifTimelineSet.resetLiveTimeline('end', true);
this._notifTimelineSet.resetLiveTimeline('end', null);
// we could try to paginate a single event at this point in order to get
// a more valid pagination token, but it just ends up with an out of order