diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-03-29 04:50:25 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-03-29 20:51:18 +0200 |
commit | 6d1416fb6ec7e64a765af652ea3b21722ec12be3 (patch) | |
tree | e5a7f21a13cb9aa7e4a737dd52c243da78622300 /src/MainWindow.cpp | |
parent | d7cb2bd64734adb6938b85ac28075c2c8e8d25e0 (diff) |
Add backend for new room creation dialogs
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r-- | src/MainWindow.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index c4af7f0c..7235f93d 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -54,8 +54,6 @@ #include "ui/UIA.h" #include "voip/WebRTCSession.h" -#include "dialogs/CreateRoom.h" - Q_DECLARE_METATYPE(mtx::events::collections::TimelineEvents) Q_DECLARE_METATYPE(std::vector<DeviceInfo>) Q_DECLARE_METATYPE(std::vector<mtx::responses::PublicRoomsChunk>) @@ -404,19 +402,6 @@ MainWindow::hasActiveUser() settings->contains(prefix + "auth/user_id"); } -void -MainWindow::openCreateRoomDialog( - std::function<void(const mtx::requests::CreateRoom &request)> callback) -{ - auto dialog = new dialogs::CreateRoom(nullptr); - connect(dialog, - &dialogs::CreateRoom::createRoom, - this, - [callback](const mtx::requests::CreateRoom &request) { callback(request); }); - - showDialog(dialog); -} - bool MainWindow::pageSupportsTray() const { |