From 728155f0d8b953fa48504dbe52590f8421a69ee2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 14 Mar 2022 13:44:30 +0400 Subject: [PATCH] Disable speaker link sharing in RTMP streams. --- Telegram/SourceFiles/calls/group/calls_group_settings.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/calls/group/calls_group_settings.cpp b/Telegram/SourceFiles/calls/group/calls_group_settings.cpp index 9ab4f72dd..7a1b178db 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_settings.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_settings.cpp @@ -858,7 +858,11 @@ std::pair, rpl::lifetime> ShareInviteLinkAction( }); }).send(); - if (!state->linkSpeaker.has_value()) { + if (real->rtmp()) { + state->linkSpeaker = QString(); + state->linkSpeakerRequestId = 0; + shareReady(); + } else if (!state->linkSpeaker.has_value()) { using Flag = MTPphone_ExportGroupCallInvite::Flag; state->linkSpeakerRequestId = peer->session().api().request( MTPphone_ExportGroupCallInvite(