mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-08 05:55:13 +00:00
notification exceptions
This commit is contained in:
@@ -556,7 +556,8 @@ final class ChatListSearchContainerNode: SearchDisplayControllerContentNode {
|
||||
self.dimNode.backgroundColor = filter.contains(.excludeRecent) ? UIColor.black.withAlphaComponent(0.5) : self.presentationData.theme.chatList.backgroundColor
|
||||
|
||||
|
||||
//self.backgroundColor =
|
||||
self.backgroundColor = filter.contains(.excludeRecent) ? nil : self.presentationData.theme.chatList.backgroundColor
|
||||
|
||||
|
||||
self.addSubnode(self.dimNode)
|
||||
self.addSubnode(self.recentListNode)
|
||||
|
||||
@@ -645,7 +645,7 @@ final class NotificationExceptionsControllerNode: ViewControllerTracingNode {
|
||||
|
||||
presentControllerImpl?(notificationPeerExceptionController(account: account, peerId: peerId, mode: mode, updatePeerSound: { peerId, sound in
|
||||
_ = updatePeerSound(peerId, sound).start(next: { _ in
|
||||
_ = (account.postbox.loadedPeerWithId(peerId) |> deliverOnMainQueue).start(next: { peer in
|
||||
_ = combineLatest(updatePeerSound(peerId, sound), account.postbox.loadedPeerWithId(peerId) |> deliverOnMainQueue).start(next: { _, peer in
|
||||
updateState { value in
|
||||
return value.withUpdatedPeerSound(peer, sound)
|
||||
}
|
||||
@@ -654,7 +654,7 @@ final class NotificationExceptionsControllerNode: ViewControllerTracingNode {
|
||||
|
||||
})
|
||||
}, updatePeerNotificationInterval: { peerId, muteInterval in
|
||||
_ = (account.postbox.loadedPeerWithId(peerId) |> deliverOnMainQueue).start(next: { peer in
|
||||
_ = combineLatest(updatePeerNotificationInterval(peerId, muteInterval), account.postbox.loadedPeerWithId(peerId) |> deliverOnMainQueue).start(next: { _, peer in
|
||||
updateState { value in
|
||||
return value.withUpdatedPeerMuteInterval(peer, muteInterval)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user