Centre PlaceCall dialog

This commit is contained in:
trilene 2020-07-13 19:20:41 -04:00
parent e85652e7e7
commit 09d2d937c5

View file

@ -478,13 +478,14 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
members.front().user_id == utils::localUser() ? members.back() members.front().user_id == utils::localUser() ? members.back()
: members.front(); : members.front();
auto dialog = 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]() { connect(dialog, &dialogs::PlaceCall::voice, this, [this]() {
callManager_.sendInvite(current_room_); callManager_.sendInvite(current_room_);
}); });
connect(dialog, &dialogs::PlaceCall::video, this, [this]() { connect(dialog, &dialogs::PlaceCall::video, this, [this]() {
showNotification("Video calls not yet implemented"); showNotification("Video calls not yet implemented");
}); });
utils::centerWidget(dialog, MainWindow::instance());
dialog->show(); dialog->show();
} }
} }