mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Handle getGroupCallStreamChannels errors.
This commit is contained in:
parent
e109b9e279
commit
e7b5ab56e0
1 changed files with 10 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue