1
0
mirror of https://github.com/NicolasConstant/sengi synced 2025-02-03 03:47:35 +01:00

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

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[]) => {