Fix
This commit is contained in:
parent
e31131b62c
commit
152595963b
|
@ -34,7 +34,7 @@ final class AuthorizationStateReadyLoadChats implements GenericUpdateHandler<Upd
|
||||||
if (update.authorizationState.getConstructor() == AuthorizationStateReady.CONSTRUCTOR) {
|
if (update.authorizationState.getConstructor() == AuthorizationStateReady.CONSTRUCTOR) {
|
||||||
client.send(new LoadChats(chatList, 2000), ok -> {
|
client.send(new LoadChats(chatList, 2000), ok -> {
|
||||||
if (ok.getConstructor() == Error.CONSTRUCTOR) {
|
if (ok.getConstructor() == Error.CONSTRUCTOR) {
|
||||||
var error = (Error) ok;
|
Error error = (Error) ok;
|
||||||
if (error.code != 404) {
|
if (error.code != 404) {
|
||||||
throw new TelegramError((Error) ok);
|
throw new TelegramError((Error) ok);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue