Room list: Show direct chats in spaces

Direct Chats can be added to spaces as well. No need to exclude them.
This commit is contained in:
Arno Rehn
2025-10-05 16:38:18 +02:00
committed by Tobias Fella
parent 3b08d0f382
commit 2b0251c593

View File

@@ -512,7 +512,7 @@ void RoomManager::setCurrentSpace(const QString &spaceId, bool setRoom)
// This need to happen before the signal so TreeView.expandRecursively() can work nicely.
m_sortFilterRoomTreeModel->setActiveSpaceId(m_currentSpaceId);
m_sortFilterRoomTreeModel->setMode(m_currentSpaceId == u"DM"_s ? SortFilterRoomTreeModel::DirectChats : SortFilterRoomTreeModel::Rooms);
m_sortFilterRoomTreeModel->setMode(m_currentSpaceId == u"DM"_s ? SortFilterRoomTreeModel::DirectChats : SortFilterRoomTreeModel::All);
Q_EMIT currentSpaceChanged();
if (m_connection) {