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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user