fix mention loading

This commit is contained in:
Nicolas Constant 2020-06-18 02:25:32 -04:00
parent b0234435d4
commit 08dd0025c9
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ export class MentionsComponent extends TimelineBase {
}
ngOnInit() {
this.isLoading = false;
}
ngOnDestroy(): void {
@ -81,6 +82,7 @@ export class MentionsComponent extends TimelineBase {
}
protected getNextStatuses(): Promise<Status[]> {
console.warn('MENTIONS get next status');
return this.mastodonService.getNotifications(this.account, ['follow', 'favourite', 'reblog', 'poll'], this.lastId)
.then((result: Notification[]) => {
const statuses = result.map(x => x.status);