Try to fix Jenkins build

This commit is contained in:
Alex Sytnyk 2018-09-10 12:25:29 +03:00
parent 1635c0995f
commit 176c09b55a

View file

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