Automatically enter room when joining it

Related to #352 but needs an additional Quotient patch to works
This commit is contained in:
Carl Schwan
2021-05-07 22:37:16 +02:00
parent 1615695b21
commit 5f8795c41f
5 changed files with 20 additions and 14 deletions

View File

@@ -24,6 +24,7 @@
#include "csapi/notifications.h"
#include "notificationsmanager.h"
#include "roommanager.h"
#ifndef Q_OS_ANDROID
bool useUnityCounter()
@@ -288,6 +289,7 @@ void RoomListModel::updateRoom(Room *room, Room *prev)
} else {
beginInsertRows(QModelIndex(), m_rooms.count(), m_rooms.count());
doAddRoom(newRoom);
RoomManager::instance().enterRoom(qobject_cast<NeoChatRoom *>(newRoom));
endInsertRows();
}
}