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

actually filter /messages

This commit is contained in:
Matthew Hodgson
2016-09-07 22:04:12 +01:00
parent 91f8df8d19
commit dac820f957
2 changed files with 23 additions and 0 deletions

View File

@@ -1743,6 +1743,13 @@ MatrixClient.prototype.paginateEventTimeline = function(eventTimeline, opts) {
dir: dir
};
var filter = eventTimeline.getFilter();
if (filter) {
// XXX: it's horrific that /messages' filter parameter doesn't match
// /sync's one - see https://matrix.org/jira/browse/SPEC-451
params.filter = JSON.stringify(filter.getRoomTimelineFilterComponent());
}
var self = this;
var promise =