summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp

index 8e93c0f4..e0ac31ab 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp
@@ -437,7 +437,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent) } else { if (auto roomInfo = cache::singleRoomInfo(current_room_.toStdString()); roomInfo.member_count != 2) { - showNotification("Voice calls are limited to 1:1 rooms."); + showNotification("Calls are limited to 1:1 rooms."); } else { std::vector<RoomMember> members( cache::getMembers(current_room_.toStdString())); @@ -452,7 +452,10 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent) userSettings_, MainWindow::instance()); connect(dialog, &dialogs::PlaceCall::voice, this, [this]() { - callManager_.sendInvite(current_room_); + callManager_.sendInvite(current_room_, false); + }); + connect(dialog, &dialogs::PlaceCall::video, this, [this]() { + callManager_.sendInvite(current_room_, true); }); utils::centerWidget(dialog, MainWindow::instance()); dialog->show();