fix mention loading
This commit is contained in:
parent
b0234435d4
commit
08dd0025c9
@ -42,6 +42,7 @@ export class MentionsComponent extends TimelineBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.isLoading = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
@ -81,6 +82,7 @@ export class MentionsComponent extends TimelineBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected getNextStatuses(): Promise<Status[]> {
|
protected getNextStatuses(): Promise<Status[]> {
|
||||||
|
console.warn('MENTIONS get next status');
|
||||||
return this.mastodonService.getNotifications(this.account, ['follow', 'favourite', 'reblog', 'poll'], this.lastId)
|
return this.mastodonService.getNotifications(this.account, ['follow', 'favourite', 'reblog', 'poll'], this.lastId)
|
||||||
.then((result: Notification[]) => {
|
.then((result: Notification[]) => {
|
||||||
const statuses = result.map(x => x.status);
|
const statuses = result.map(x => x.status);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user