diff options
author | trilene <trilene@runbox.com> | 2021-02-25 13:44:08 -0500 |
---|---|---|
committer | trilene <trilene@runbox.com> | 2021-02-25 13:44:08 -0500 |
commit | 099207b88c93d4f79148d86fa8683a19d9888b99 (patch) | |
tree | ce308fa2a0d7d6295ff9ef722b7031b24c745543 | |
parent | add_feature_info for screen sharing window selection (diff) | |
download | nheko-099207b88c93d4f79148d86fa8683a19d9888b99.tar.xz |
Restore voice/video calls
-rw-r--r-- | src/CallManager.cpp | 3 |
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(); } |