summary refs log tree commit diff
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2021-02-25 13:44:08 -0500
committertrilene <trilene@runbox.com>2021-02-25 13:44:08 -0500
commit099207b88c93d4f79148d86fa8683a19d9888b99 (patch)
treece308fa2a0d7d6295ff9ef722b7031b24c745543
parentadd_feature_info for screen sharing window selection (diff)
downloadnheko-099207b88c93d4f79148d86fa8683a19d9888b99.tar.xz
Restore voice/video calls
-rw-r--r--src/CallManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CallManager.cpp b/src/CallManager.cpp
index 40be3a12..eec5922e 100644
--- a/src/CallManager.cpp
+++ b/src/CallManager.cpp
@@ -206,7 +206,8 @@ CallManager::sendInvite(const QString &roomid, CallType callType, unsigned int w
         callPartyAvatarUrl_ = QString::fromStdString(roomInfo.avatar_url);
         emit newInviteState();
         playRingtone(QUrl("qrc:/media/media/ringback.ogg"), true);
-        if (!session_.createOffer(callType, windows_[windowIndex].second)) {
+        if (!session_.createOffer(
+              callType, callType == CallType::SCREEN ? windows_[windowIndex].second : 0)) {
                 emit ChatPage::instance()->showNotification("Problem setting up call.");
                 endCall();
         }