mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-03 13:45:01 +00:00
Handle getGroupCallStreamChannels errors.
This commit is contained in:
parent
e109b9e279
commit
e7b5ab56e0
@ -2601,8 +2601,17 @@ void GroupCall::requestCurrentTimeStart(
|
||||
finish(0);
|
||||
}
|
||||
});
|
||||
}).fail([=] {
|
||||
}).fail([=](const MTP::Error &error) {
|
||||
finish(0);
|
||||
|
||||
if (error.type() == u"GROUPCALL_JOIN_MISSING"_q
|
||||
|| error.type() == u"GROUPCALL_FORBIDDEN"_q) {
|
||||
for (const auto &[task, part] : _broadcastParts) {
|
||||
_api.request(part.requestId).cancel();
|
||||
}
|
||||
setState(State::Joining);
|
||||
rejoin();
|
||||
}
|
||||
}).handleAllErrors().toDC(
|
||||
MTP::groupCallStreamDcId(_broadcastDcId)
|
||||
).send();
|
||||
|
Loading…
Reference in New Issue
Block a user