mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 12:00:48 +00:00
Fix 'Sorry, group is inac...' in scheduled voice chat.
This commit is contained in:
parent
33936195a1
commit
ca31a08182
@ -1715,13 +1715,13 @@ void GroupCall::handlePossibleCreateOrJoinResponse(
|
|||||||
|
|
||||||
void GroupCall::handlePossibleCreateOrJoinResponse(
|
void GroupCall::handlePossibleCreateOrJoinResponse(
|
||||||
const MTPDgroupCall &data) {
|
const MTPDgroupCall &data) {
|
||||||
setScheduledDate(data.vschedule_date().value_or_empty());
|
|
||||||
if (_acceptFields) {
|
if (_acceptFields) {
|
||||||
if (!_instance && !_id) {
|
if (!_instance && !_id) {
|
||||||
const auto input = MTP_inputGroupCall(
|
const auto input = MTP_inputGroupCall(
|
||||||
data.vid(),
|
data.vid(),
|
||||||
data.vaccess_hash());
|
data.vaccess_hash());
|
||||||
const auto scheduleDate = data.vschedule_date().value_or_empty();
|
const auto scheduleDate = data.vschedule_date().value_or_empty();
|
||||||
|
setScheduledDate(scheduleDate);
|
||||||
if (const auto chat = _peer->asChat()) {
|
if (const auto chat = _peer->asChat()) {
|
||||||
chat->setGroupCall(input, scheduleDate);
|
chat->setGroupCall(input, scheduleDate);
|
||||||
} else if (const auto group = _peer->asChannel()) {
|
} else if (const auto group = _peer->asChannel()) {
|
||||||
@ -1735,6 +1735,7 @@ void GroupCall::handlePossibleCreateOrJoinResponse(
|
|||||||
} else if (_id != data.vid().v || !_instance) {
|
} else if (_id != data.vid().v || !_instance) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
setScheduledDate(data.vschedule_date().value_or_empty());
|
||||||
if (const auto streamDcId = data.vstream_dc_id()) {
|
if (const auto streamDcId = data.vstream_dc_id()) {
|
||||||
_broadcastDcId = MTP::BareDcId(streamDcId->v);
|
_broadcastDcId = MTP::BareDcId(streamDcId->v);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user