Fix compatibility issue with TdLib
This commit is contained in:
parent
4980736146
commit
6ac2989f2c
1 changed files with 6 additions and 8 deletions
|
@ -1203,14 +1203,12 @@ class TelegramHelper private constructor() {
|
|||
//listener?.onTelegramChatsChanged()
|
||||
}
|
||||
}
|
||||
TdApi.UpdateNotificationSettings.CONSTRUCTOR -> {
|
||||
val update = obj as TdApi.UpdateNotificationSettings
|
||||
if (update.scope is TdApi.NotificationSettingsScopeChat) {
|
||||
val chat = chats[(update.scope as TdApi.NotificationSettingsScopeChat).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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue