Disable speaker link sharing in RTMP streams.

This commit is contained in:
John Preston 2022-03-14 13:44:30 +04:00
parent b1281c7999
commit 728155f0d8
1 changed files with 5 additions and 1 deletions

View File

@ -858,7 +858,11 @@ std::pair<Fn<void()>, 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(