diff --git a/src/client.js b/src/client.js index 9a538b77d..e2be7ac8d 100644 --- a/src/client.js +++ b/src/client.js @@ -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