Skip to content
Snippets Groups Projects
Commit 09d2d937 authored by trilene's avatar trilene
Browse files

Centre PlaceCall dialog

parent e85652e7
No related branches found
No related tags found
No related merge requests found
......@@ -478,13 +478,14 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
members.front().user_id == utils::localUser() ? members.back()
: members.front();
auto dialog =
new dialogs::PlaceCall(callee.user_id, callee.display_name, this);
new dialogs::PlaceCall(callee.user_id, callee.display_name, MainWindow::instance());
connect(dialog, &dialogs::PlaceCall::voice, this, [this]() {
callManager_.sendInvite(current_room_);
});
connect(dialog, &dialogs::PlaceCall::video, this, [this]() {
showNotification("Video calls not yet implemented");
});
utils::centerWidget(dialog, MainWindow::instance());
dialog->show();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment