Fix error on syncing channel with no new messages
This commit is contained in:
parent
13cb5f87ff
commit
143e1f23f8
|
@ -690,7 +690,7 @@ export default class PeerClient {
|
||||||
const talkChannel = await this.#getUserChannel(req.mxid, req.channel_props)
|
const talkChannel = await this.#getUserChannel(req.mxid, req.channel_props)
|
||||||
|
|
||||||
const res = await talkChannel.getChatListFrom(req.sync_from)
|
const res = await talkChannel.getChatListFrom(req.sync_from)
|
||||||
if (!res.success) return res
|
if (!res.success || !res.length) return res
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
const nextRes = await talkChannel.getChatListFrom(
|
const nextRes = await talkChannel.getChatListFrom(
|
||||||
|
|
Loading…
Reference in New Issue