An ATproto social media client -- with an independent Appview.

Only use cursors supplied by the server (ref #59)

+5 -7
+2 -4
src/state/models/feed-view.ts
··· 438 438 } 439 439 this._updateAll(res) 440 440 numToFetch -= res.data.feed.length 441 - cursor = this.feed[res.data.feed.length - 1] 442 - ? ts(this.feed[res.data.feed.length - 1]) 443 - : undefined 444 - } while (numToFetch > 0) 441 + cursor = res.data.cursor 442 + } while (cursor && numToFetch > 0) 445 443 this._xIdle() 446 444 } catch (e: any) { 447 445 this._xIdle(e)
+2 -2
src/state/models/notifications-view.ts
··· 379 379 } 380 380 this._updateAll(res) 381 381 numToFetch -= res.data.notifications.length 382 - cursor = this.notifications[res.data.notifications.length - 1].indexedAt 383 - } while (numToFetch > 0) 382 + cursor = res.data.cursor 383 + } while (cursor && numToFetch > 0) 384 384 this._xIdle() 385 385 } catch (e: any) { 386 386 this._xIdle(e)
+1 -1
src/state/models/user-follows-view.ts
··· 1 1 import {makeAutoObservable} from 'mobx' 2 2 import { 3 - AppBskyGraphGetFollowers as GetFollows, 3 + AppBskyGraphGetFollows as GetFollows, 4 4 AppBskyActorRef as ActorRef, 5 5 } from '@atproto/api' 6 6 import {RootStoreModel} from './root-store'