Skip to content

Commit

Permalink
Merge pull request #716 from matrix-org/bwindels/fixfilepanel
Browse files Browse the repository at this point in the history
Fix filepanel also filtering main timeline with LL turned on.
  • Loading branch information
bwindels committed Sep 4, 2018
2 parents a6c055b + 0d24c18 commit 3561fd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,9 @@ function(roomId, fromToken, limit, dir, timelineFilter = undefined) {

let filter = null;
if (this._clientOpts.lazyLoadMembers) {
filter = LAZY_LOADING_MESSAGES_FILTER;
// create a shallow copy of LAZY_LOADING_MESSAGES_FILTER,
// so the timelineFilter doesn't get written into it below
filter = Object.assign({}, LAZY_LOADING_MESSAGES_FILTER);
}
if (timelineFilter) {
// XXX: it's horrific that /messages' filter parameter doesn't match
Expand Down

0 comments on commit 3561fd1

Please sign in to comment.