From 41271f87e82ac11791d0c09a37be5674b3672be5 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 28 Sep 2018 16:51:39 +0300 Subject: [PATCH] remove unnecessary changes --- .../osmand/telegram/helpers/TelegramHelper.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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