QML the join room dialog

This commit is contained in:
Loren Burkholder 2021-09-24 21:32:06 -04:00
parent 7eb9071b50
commit e9ed12e27b
10 changed files with 92 additions and 144 deletions

View file

@ -21,6 +21,7 @@ Nheko::Nheko()
connect(
UserSettings::instance().get(), &UserSettings::themeChanged, this, &Nheko::colorsChanged);
connect(ChatPage::instance(), &ChatPage::contentLoaded, this, &Nheko::updateUserProfile);
connect(this, &Nheko::joinRoom, ChatPage::instance(), &ChatPage::joinRoom);
}
void
@ -96,13 +97,6 @@ Nheko::openCreateRoomDialog() const
[](const mtx::requests::CreateRoom &req) { ChatPage::instance()->createRoom(req); });
}
void
Nheko::openJoinRoomDialog() const
{
MainWindow::instance()->openJoinRoomDialog(
[](const QString &room_id) { ChatPage::instance()->joinRoom(room_id); });
}
void
Nheko::reparent(QWindow *win) const
{