diff --git a/node/src/client.js b/node/src/client.js index eccb07f..7975d22 100644 --- a/node/src/client.js +++ b/node/src/client.js @@ -690,7 +690,7 @@ export default class PeerClient { const talkChannel = await this.#getUserChannel(req.mxid, req.channel_props) const res = await talkChannel.getChatListFrom(req.sync_from) - if (!res.success) return res + if (!res.success || !res.length) return res while (true) { const nextRes = await talkChannel.getChatListFrom(