MessageEventModel test

Add basic test suite for MessageEventModel
This commit is contained in:
James Graham
2023-11-29 19:06:43 +00:00
committed by Carl Schwan
parent 94cf75af68
commit 47c12cb582
3 changed files with 137 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ void MessageEventModel::setRoom(NeoChatRoom *room)
}
m_currentRoom = room;
Q_EMIT roomChanged();
if (room) {
m_lastReadEventIndex = QPersistentModelIndex(QModelIndex());
room->setDisplayed();