notification exceptions

This commit is contained in:
overtake
2018-11-21 01:10:25 +04:00
parent 431e7082c2
commit 56ad53e761
2 changed files with 4 additions and 3 deletions

View File

@@ -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)

View File

@@ -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)
}