Skip to content

Commit

Permalink
add isMoreAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Sep 14, 2019
1 parent 738122b commit 0687be8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/feeds/list-reel-media-viewer.feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class ListReelMediaViewerFeed extends Feed<
@Expose()
private mediaId: string;
@Expose()
private nextMaxId: string | null = null;
private nextMaxId?: string = undefined;

async items(): Promise<ListReelMediaViewerFeedResponseUsersItem[]> {
const res = await this.request();
Expand All @@ -32,4 +32,8 @@ export class ListReelMediaViewerFeed extends Feed<
this.state = body;
return body;
}

isMoreAvailable(): boolean {
return this.nextMaxId === null;
}
}

0 comments on commit 0687be8

Please sign in to comment.