Only use cursors supplied by the server (ref #59)
This commit is contained in:
parent
c4cca8cf6c
commit
d4b9ef3b0a
3 changed files with 5 additions and 7 deletions
|
|
@ -379,8 +379,8 @@ export class NotificationsViewModel {
|
|||
}
|
||||
this._updateAll(res)
|
||||
numToFetch -= res.data.notifications.length
|
||||
cursor = this.notifications[res.data.notifications.length - 1].indexedAt
|
||||
} while (numToFetch > 0)
|
||||
cursor = res.data.cursor
|
||||
} while (cursor && numToFetch > 0)
|
||||
this._xIdle()
|
||||
} catch (e: any) {
|
||||
this._xIdle(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue