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

don't double-add events in Room.addEventsToTimeline

also, ignore notif events from initialSync as their time ordering is wrong
This commit is contained in:
Matthew Hodgson
2016-09-10 00:52:39 +01:00
parent 2c6409a67a
commit b69f6cf70a
3 changed files with 12 additions and 9 deletions

View File

@@ -389,12 +389,10 @@ Room.prototype.getCanonicalAlias = function() {
*/
Room.prototype.addEventsToTimeline = function(events, toStartOfTimeline,
timeline, paginationToken) {
for (var i = 0; i < this._timelineSets.length; i++) {
this._timelineSets[i].addEventsToTimeline(
events, toStartOfTimeline,
timeline, paginationToken
);
}
timeline.getTimelineSet().addEventsToTimeline(
events, toStartOfTimeline,
timeline, paginationToken
);
};
/**