Fix highlighted room when opening room from notification

This commit is contained in:
Tobias Fella
2021-10-03 00:46:41 +02:00
parent 6b86c113f4
commit 011cf3c652
3 changed files with 13 additions and 4 deletions

View File

@@ -496,3 +496,8 @@ NeoChatRoom *RoomListModel::roomByAliasOrId(const QString &aliasOrId)
}
return nullptr;
}
int RoomListModel::indexForRoom(NeoChatRoom *room) const
{
return m_rooms.indexOf(room);
}