Skip to content

Commit

Permalink
shallow-clone the filter, so the timeline filter doesnt get written i…
Browse files Browse the repository at this point in the history
…nto it later on
  • Loading branch information
bwindels committed Sep 3, 2018
1 parent d29524b commit 3363cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,7 @@ function(roomId, fromToken, limit, dir, timelineFilter = undefined) {

let filter = null;
if (this._clientOpts.lazyLoadMembers) {
filter = LAZY_LOADING_MESSAGES_FILTER;
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 3363cc4

Please sign in to comment.