diff --git a/Telegram/SourceFiles/calls/group/calls_group_call.cpp b/Telegram/SourceFiles/calls/group/calls_group_call.cpp index 190b574acc..7e2e704bfa 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_call.cpp @@ -407,9 +407,7 @@ bool GroupCall::isScreenSharing() const { void GroupCall::toggleVideo(bool active) { if (!active) { - if (!isScreenSharing()) { - _videoOutgoing->setState(Webrtc::VideoState::Inactive); - } + _videoOutgoing->setState(Webrtc::VideoState::Inactive); return; } const auto changing = isScreenSharing(); @@ -1581,7 +1579,7 @@ void GroupCall::ensureControllerCreated() { }); return result; }, - .enableVideo = true, + .videoContentType = tgcalls::VideoContentType::Screencast, }; if (Logs::DebugEnabled()) { auto callLogFolder = cWorkingDir() + qsl("DebugLogs"); diff --git a/Telegram/ThirdParty/tgcalls b/Telegram/ThirdParty/tgcalls index 4a944bc29e..909612ca66 160000 --- a/Telegram/ThirdParty/tgcalls +++ b/Telegram/ThirdParty/tgcalls @@ -1 +1 @@ -Subproject commit 4a944bc29ec308556471a1533874a68dd95a9ba3 +Subproject commit 909612ca66cef26deffa5dc2dcd964ddde1b4c11