diff --git a/TelegramUI/ChannelInfoController.swift b/TelegramUI/ChannelInfoController.swift index a067415c73..b896b9a336 100644 --- a/TelegramUI/ChannelInfoController.swift +++ b/TelegramUI/ChannelInfoController.swift @@ -729,7 +729,7 @@ public func channelInfoController(account: Account, peerId: PeerId) -> ViewContr viewSettings = GlobalNotificationSettingsSet.defaultSettings } - let controller = notificationMuteSettingsController(presentationData: presentationData, notificationSettings: viewSettings.privateChats, updateSettings: { value in + let controller = notificationMuteSettingsController(presentationData: presentationData, notificationSettings: viewSettings.channels, updateSettings: { value in changeMuteSettingsDisposable.set(updatePeerMuteSetting(account: account, peerId: peerId, muteInterval: value).start()) }) presentControllerImpl?(controller, ViewControllerPresentationArguments(presentationAnimation: .modalSheet)) diff --git a/TelegramUI/ChatListSearchContainerNode.swift b/TelegramUI/ChatListSearchContainerNode.swift index c0547c7e2e..775c3de1b9 100644 --- a/TelegramUI/ChatListSearchContainerNode.swift +++ b/TelegramUI/ChatListSearchContainerNode.swift @@ -948,6 +948,8 @@ final class ChatListSearchContainerNode: SearchDisplayControllerContentNode { strongSelf.listNode.isHidden = !displayingResults strongSelf.recentListNode.isHidden = displayingResults || strongSelf.filter.contains(.excludeRecent) strongSelf.dimNode.isHidden = displayingResults + strongSelf.backgroundColor = !displayingResults && strongSelf.filter.contains(.excludeRecent) ? nil : strongSelf.presentationData.theme.chatList.backgroundColor + } }) } diff --git a/TelegramUI/GroupInfoController.swift b/TelegramUI/GroupInfoController.swift index d165bb9cca..3f8da20687 100644 --- a/TelegramUI/GroupInfoController.swift +++ b/TelegramUI/GroupInfoController.swift @@ -1288,7 +1288,7 @@ public func groupInfoController(account: Account, peerId: PeerId) -> ViewControl viewSettings = GlobalNotificationSettingsSet.defaultSettings } - let controller = notificationMuteSettingsController(presentationData: presentationData, notificationSettings: viewSettings.privateChats, updateSettings: { value in + let controller = notificationMuteSettingsController(presentationData: presentationData, notificationSettings: viewSettings.groupChats, updateSettings: { value in changeMuteSettingsDisposable.set(updatePeerMuteSetting(account: account, peerId: peerId, muteInterval: value).start()) }) presentControllerImpl?(controller, ViewControllerPresentationArguments(presentationAnimation: .modalSheet)) diff --git a/TelegramUI/NotificationExceptionControllerNode.swift b/TelegramUI/NotificationExceptionControllerNode.swift index 4d62c5b08c..3c6ef327a6 100644 --- a/TelegramUI/NotificationExceptionControllerNode.swift +++ b/TelegramUI/NotificationExceptionControllerNode.swift @@ -290,10 +290,6 @@ private func notificationsExceptionEntries(presentationData: PresentationData, s let soundName = localizedPeerNotificationSoundString(strings: presentationData.strings, sound: value.settings.messageSound) title += (title.isEmpty ? presentationData.strings.Notification_Exceptions_Sound(soundName).0 : ", \(presentationData.strings.Notification_Exceptions_Sound(soundName).0)") } - if value.peer.displayTitle == "Vyezd Family" { - var bp:Int = 0 - bp += 1 - } entries.append(.peer(index: index, peer: value.peer, theme: presentationData.theme, strings: presentationData.strings, dateFormat: presentationData.dateTimeFormat, description: title, notificationSettings: value.settings, revealed: state.revealedPeerId == value.peer.id, editing: state.editing)) index += 1 } diff --git a/TelegramUI/NotificationSearchItem.swift b/TelegramUI/NotificationSearchItem.swift index 033f9f623f..148dd9d4fc 100644 --- a/TelegramUI/NotificationSearchItem.swift +++ b/TelegramUI/NotificationSearchItem.swift @@ -79,6 +79,10 @@ class NotificationSearchItemNode: ListViewItemNode { } } + override func animateRemoved(_ currentTimestamp: Double, duration: Double) { + self.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.15, removeOnCompletion: false) + } + required init() { self.searchBarNode = SearchBarPlaceholderNode()