1 files changed, 6 insertions, 13 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index d7ea4301..7c018aff 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -23,7 +23,6 @@
#include "MainWindow.h"
#include "MatrixClient.h"
#include "Olm.h"
-#include "QuickSwitcher.h"
#include "RoomList.h"
#include "SideBarActions.h"
#include "Splitter.h"
@@ -590,18 +589,6 @@ ChatPage::loadStateFromCache()
}
void
-ChatPage::showQuickSwitcher()
-{
- auto dialog = new QuickSwitcher(this);
-
- connect(dialog, &QuickSwitcher::roomSelected, room_list_, &RoomList::highlightSelectedRoom);
- connect(
- dialog, &QuickSwitcher::closing, this, []() { MainWindow::instance()->hideOverlay(); });
-
- MainWindow::instance()->showTransparentOverlayModal(dialog);
-}
-
-void
ChatPage::removeRoom(const QString &room_id)
{
try {
@@ -1456,3 +1443,9 @@ ChatPage::handleMatrixUri(const QUrl &uri)
{
handleMatrixUri(uri.toString(QUrl::ComponentFormattingOption::FullyEncoded).toUtf8());
}
+
+void
+ChatPage::highlightRoom(const QString &room_id)
+{
+ room_list_->highlightSelectedRoom(room_id);
+}
\ No newline at end of file
|