diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-20 10:39:00 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-20 10:39:00 -0600 |
commit | d4b9ef3b0a89f1a5a97ff37024fe7f8d90891b86 (patch) | |
tree | 9c6bf6384d845aa63fe699d78a80e0b4fc977e81 /src/state/models/notifications-view.ts | |
parent | c4cca8cf6c62b55296cfaca2ddd22606af6586a1 (diff) | |
download | voidsky-d4b9ef3b0a89f1a5a97ff37024fe7f8d90891b86.tar.zst |
Only use cursors supplied by the server (ref #59)
Diffstat (limited to 'src/state/models/notifications-view.ts')
-rw-r--r-- | src/state/models/notifications-view.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/models/notifications-view.ts b/src/state/models/notifications-view.ts index bbd7c8080..965efb87d 100644 --- a/src/state/models/notifications-view.ts +++ b/src/state/models/notifications-view.ts @@ -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) |