This commit is contained in:
Andrea Cavalli 2022-07-12 18:35:08 +02:00
parent e31131b62c
commit 152595963b

View File

@ -34,7 +34,7 @@ final class AuthorizationStateReadyLoadChats implements GenericUpdateHandler<Upd
if (update.authorizationState.getConstructor() == AuthorizationStateReady.CONSTRUCTOR) {
client.send(new LoadChats(chatList, 2000), ok -> {
if (ok.getConstructor() == Error.CONSTRUCTOR) {
var error = (Error) ok;
Error error = (Error) ok;
if (error.code != 404) {
throw new TelegramError((Error) ok);
}