2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

Remove exceptions in TL parsing.

This commit is contained in:
John Preston
2019-07-18 16:06:38 +02:00
parent 4a10a88ecf
commit 6aa930d510
18 changed files with 463 additions and 384 deletions

View File

@@ -780,8 +780,9 @@ void Application::authSessionCreate(const MTPUser &user) {
const mtpPrime *from,
const mtpPrime *end) {
if (const auto main = App::main()) {
main->updateReceived(from, end);
return main->updateReceived(from, end);
}
return true;
}));
_mtproto->setGlobalFailHandler(::rpcFail([=](const RPCError &error) {
if (activeAccount().sessionExists()) {