You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
maintain the global notification timeline set.
* track notifTimelineSet on MatrixClient * stop Rooms from tracking notifTimelineSet as they don't need to * Implement client.paginateNotifTimelineSet * make Events store their pushActions properly * insert live notifs directly into the notifTimelineSet in /sync, ordering by origin_server_ts.
This commit is contained in:
@@ -254,7 +254,12 @@ TimelineWindow.prototype.paginate = function(direction, size, makeRequest,
|
||||
|
||||
debuglog("TimelineWindow: starting request");
|
||||
var self = this;
|
||||
var prom = this._client.paginateEventTimeline(tl.timeline, {
|
||||
|
||||
var paginateTimeline = tl.timeline.getRoomId() ?
|
||||
this._client.paginateEventTimeline :
|
||||
this._client.paginateNotifTimeline;
|
||||
|
||||
var prom = paginateTimeline.call(this._client, tl.timeline, {
|
||||
backwards: direction == EventTimeline.BACKWARDS,
|
||||
limit: size
|
||||
}).finally(function() {
|
||||
|
||||
Reference in New Issue
Block a user