Skip to content

Commit

Permalink
Add TdApi.UpdateChatIsBlocked handling in Java example.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 95ddae8fe77e29bac6cd3846f78c42a4290b7b8f
  • Loading branch information
levlam committed Oct 5, 2020
1 parent 7d6f14d commit c9c19f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions example/java/org/drinkless/tdlib/example/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,14 @@ public void onResult(TdApi.Object object) {
}
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);
Expand Down

0 comments on commit c9c19f3

Please sign in to comment.