diff --git a/lib/client.js b/lib/client.js index a0ee321..cfbf23c 100644 --- a/lib/client.js +++ b/lib/client.js @@ -940,7 +940,7 @@ export default class Client extends EventTarget { } if (messages.length >= max) { // There are still more messages to fetch - after.time = messages[messages.length - 1].tags.time; + after = { ...after, time: messages[messages.length - 1].tags.time }; return await this.fetchHistoryBetween(target, after, before, limit); } return { messages };