From ca31a081820b2317a7bd7dbda9c74342f27ad577 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 18 Aug 2021 11:34:16 +0300 Subject: [PATCH] Fix 'Sorry, group is inac...' in scheduled voice chat. --- Telegram/SourceFiles/calls/group/calls_group_call.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/calls/group/calls_group_call.cpp b/Telegram/SourceFiles/calls/group/calls_group_call.cpp index 7f38ec867..bcb5654bb 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_call.cpp @@ -1715,13 +1715,13 @@ void GroupCall::handlePossibleCreateOrJoinResponse( void GroupCall::handlePossibleCreateOrJoinResponse( const MTPDgroupCall &data) { - setScheduledDate(data.vschedule_date().value_or_empty()); if (_acceptFields) { if (!_instance && !_id) { const auto input = MTP_inputGroupCall( data.vid(), data.vaccess_hash()); const auto scheduleDate = data.vschedule_date().value_or_empty(); + setScheduledDate(scheduleDate); if (const auto chat = _peer->asChat()) { chat->setGroupCall(input, scheduleDate); } else if (const auto group = _peer->asChannel()) { @@ -1735,6 +1735,7 @@ void GroupCall::handlePossibleCreateOrJoinResponse( } else if (_id != data.vid().v || !_instance) { return; } + setScheduledDate(data.vschedule_date().value_or_empty()); if (const auto streamDcId = data.vstream_dc_id()) { _broadcastDcId = MTP::BareDcId(streamDcId->v); }