Add TdApi.UpdateChatIsBlocked handling in Java example.

GitOrigin-RevId: 95ddae8fe77e29bac6cd3846f78c42a4290b7b8f
This commit is contained in:
levlam 2020-10-05 16:41:52 +03:00
parent 7d6f14db10
commit c9c19f3399

View File

@ -549,6 +549,14 @@ public final class Example {
}
break;
}
case TdApi.UpdateChatIsBlocked.CONSTRUCTOR: {
TdApi.UpdateChatIsBlocked update = (TdApi.UpdateChatIsBlocked) object;
TdApi.Chat chat = chats.get(update.chatId);
synchronized (chat) {
chat.isBlocked = update.isBlocked;
}
break;
}
case TdApi.UpdateChatHasScheduledMessages.CONSTRUCTOR: {
TdApi.UpdateChatHasScheduledMessages update = (TdApi.UpdateChatHasScheduledMessages) object;
TdApi.Chat chat = chats.get(update.chatId);