Centre PlaceCall dialog

This commit is contained in:
trilene 2020-07-13 19:20:41 -04:00
parent e85652e7e7
commit 09d2d937c5
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}
}