mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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);
|
finish(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).fail([=] {
|
}).fail([=](const MTP::Error &error) {
|
||||||
finish(0);
|
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(
|
}).handleAllErrors().toDC(
|
||||||
MTP::groupCallStreamDcId(_broadcastDcId)
|
MTP::groupCallStreamDcId(_broadcastDcId)
|
||||||
).send();
|
).send();
|
||||||
|
|
Loading…
Add table
Reference in a new issue