Improve the unread marker behaviour
The fixes include: - improving the timer to make it more reliable - making sure a read marker is added when changin rooms, this is needed when the messages have already been loaded. - increase the default timer to 10s to avoid the read marker disappearing and being re-added when a message arrive in quick succession. BUG: 465300
This commit is contained in:
@@ -253,6 +253,12 @@ void MessageEventModel::setRoom(NeoChatRoom *room)
|
||||
lastReadEventId.clear();
|
||||
}
|
||||
endResetModel();
|
||||
|
||||
// After reset put a read marker in if required.
|
||||
// This is needed when changing back to a room that has already loaded messages.
|
||||
if (room) {
|
||||
moveReadMarker(m_currentRoom->lastFullyReadEventId());
|
||||
}
|
||||
}
|
||||
|
||||
int MessageEventModel::refreshEvent(const QString &eventId)
|
||||
|
||||
Reference in New Issue
Block a user