Restore voice/video calls

pull/484/head
trilene 4 years ago
parent 6baa775ec8
commit 099207b88c
  1. 3
      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();
}

Loading…
Cancel
Save