Add TdApi.UpdateChatIsBlocked handling in Java example.
GitOrigin-RevId: 95ddae8fe77e29bac6cd3846f78c42a4290b7b8f
This commit is contained in:
parent
7d6f14db10
commit
c9c19f3399
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user