remove unnecessary changes

This commit is contained in:
Vitaliy 2018-09-28 16:51:39 +03:00 committed by GitHub
parent 5540b2e31b
commit 41271f87e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1203,15 +1203,15 @@ class TelegramHelper private constructor() {
//listener?.onTelegramChatsChanged()
}
}
// TdApi.UpdateChatNotificationSettings.CONSTRUCTOR -> {
// val update = obj as TdApi.UpdateChatNotificationSettings
// val chat = chats[update.chatId]
// if (chat != null) {
// synchronized(chat) {
// chat.notificationSettings = update.notificationSettings
// }
// }
// }
TdApi.UpdateChatNotificationSettings.CONSTRUCTOR -> {
val update = obj as TdApi.UpdateChatNotificationSettings
val chat = chats[update.chatId]
if (chat != null) {
synchronized(chat) {
chat.notificationSettings = update.notificationSettings
}
}
}
TdApi.UpdateFile.CONSTRUCTOR -> {
val updateFile = obj as TdApi.UpdateFile