Improve read marker

- Update from deprecated readMarkerEventId to lastFullyReadEventId for quotient 0.7.
- Removed duplicate code for marking read from the read marker delegate.
- Make sure that mark as read only trigger at the end of the timeline
- Allow the read marker to be highlighted when jumped to
This commit is contained in:
James Graham
2022-11-22 20:25:04 +00:00
parent eac2f30087
commit 7ce02ef0db
4 changed files with 34 additions and 47 deletions

View File

@@ -851,7 +851,11 @@ bool NeoChatRoom::canSendState(const QString &eventType) const
bool NeoChatRoom::readMarkerLoaded() const
{
#ifdef QUOTIENT_07
const auto it = findInTimeline(lastFullyReadEventId());
#else
const auto it = findInTimeline(readMarkerEventId());
#endif
return it != historyEdge();
}