fix(client): handle channel difference properly
This commit is contained in:
parent
ded667b332
commit
c678a0ef6a
1 changed files with 2 additions and 3 deletions
|
@ -326,7 +326,7 @@ async function _loadChannelDifference(
|
|||
filter: { _: 'channelMessagesFilterEmpty' },
|
||||
})
|
||||
|
||||
if (diff._ === 'updates.channelDifferenceEmpty') return
|
||||
if (diff._ === 'updates.channelDifferenceEmpty') break
|
||||
|
||||
await this._cachePeersFrom(diff)
|
||||
|
||||
|
@ -367,8 +367,7 @@ async function _loadChannelDifference(
|
|||
|
||||
pts = diff.pts
|
||||
|
||||
// nice naming bro, final=true means there are more updates
|
||||
if (!diff.final) break
|
||||
if (diff.final) break
|
||||
}
|
||||
|
||||
this._cpts[channelId] = pts
|
||||
|
|
Loading…
Reference in a new issue