From c9c19f3399e385d5e83de6bbc5a95790ab42a381 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 5 Oct 2020 16:41:52 +0300 Subject: [PATCH] Add TdApi.UpdateChatIsBlocked handling in Java example. GitOrigin-RevId: 95ddae8fe77e29bac6cd3846f78c42a4290b7b8f --- example/java/org/drinkless/tdlib/example/Example.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/example/java/org/drinkless/tdlib/example/Example.java b/example/java/org/drinkless/tdlib/example/Example.java index 484c90208..c2d3598dc 100644 --- a/example/java/org/drinkless/tdlib/example/Example.java +++ b/example/java/org/drinkless/tdlib/example/Example.java @@ -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);