mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
Centre PlaceCall dialog
This commit is contained in:
parent
e85652e7e7
commit
09d2d937c5
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue