fix scrolling

This commit is contained in:
Nicolas Constant 2019-08-02 23:00:16 -04:00
parent cb7d3d7079
commit a7e55b5200
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ export class DirectMessagesComponent implements OnInit {
private scrolledToBottom() {
if (this.isLoading || this.maxReached) return;
const maxId = this.conversations[this.conversations.length - 1].conversation.id;
const maxId = this.conversations[this.conversations.length - 1].conversation.last_status.id;
this.isLoading = true;
this.mastodonService.getConversations(this.account.info, maxId)
.then((conversations: Conversation[]) => {