From 7b3b5a146398be3325e784cd63702dc342dbe652 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 27 Apr 2021 17:34:05 +0400 Subject: [PATCH] Use 'Screencast' video content type. --- Telegram/SourceFiles/calls/group/calls_group_call.cpp | 6 ++---- Telegram/ThirdParty/tgcalls | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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