Improve the behaviour of jump to last unread message.

Improve the behaviour of jump to last unread message. The view will now jump as high as possible if the last unread message isn't loaded. This at least triggers more items to load which will eventually get the user to the last unread message.
This commit is contained in:
James Graham
2024-05-24 07:55:05 +00:00
parent 415cfd57e7
commit c9ddd9d513
3 changed files with 20 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ NeoChatRoom::NeoChatRoom(Connection *connection, QString roomId, JoinState joinS
setHasFileUploading(false);
});
connect(this, &Room::aboutToAddHistoricalMessages, this, &NeoChatRoom::readMarkerLoadedChanged);
connect(this, &Room::addedMessages, this, &NeoChatRoom::readMarkerLoadedChanged);
const auto &roomLastMessageProvider = RoomLastMessageProvider::self();