mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Reset display previews setting when clearing notification exceptions
This commit is contained in:
parent
1977e5da27
commit
1bcc1ba126
@ -902,7 +902,7 @@ final class NotificationExceptionsControllerNode: ViewControllerTracingNode {
|
|||||||
updateState { state in
|
updateState { state in
|
||||||
var state = state
|
var state = state
|
||||||
for value in values {
|
for value in values {
|
||||||
state = state.withUpdatedPeerMuteInterval(value.peer, nil).withUpdatedPeerSound(value.peer, .default)
|
state = state.withUpdatedPeerMuteInterval(value.peer, nil).withUpdatedPeerSound(value.peer, .default).withUpdatedPeerDisplayPreviews(value.peer, .default)
|
||||||
}
|
}
|
||||||
return state
|
return state
|
||||||
}
|
}
|
||||||
@ -910,6 +910,7 @@ final class NotificationExceptionsControllerNode: ViewControllerTracingNode {
|
|||||||
for value in values {
|
for value in values {
|
||||||
updatePeerNotificationSoundInteractive(transaction: transaction, peerId: value.peer.id, sound: .default)
|
updatePeerNotificationSoundInteractive(transaction: transaction, peerId: value.peer.id, sound: .default)
|
||||||
updatePeerMuteSetting(transaction: transaction, peerId: value.peer.id, muteInterval: nil)
|
updatePeerMuteSetting(transaction: transaction, peerId: value.peer.id, muteInterval: nil)
|
||||||
|
updatePeerDisplayPreviewsSetting(transaction: transaction, peerId: value.peer.id, displayPreviews: .default)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|> deliverOnMainQueue).start(completed: {
|
|> deliverOnMainQueue).start(completed: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user