diff --git a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt index 8ddeaf0076..ca6f7c717f 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt @@ -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