mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Refactoring
This commit is contained in:
@@ -675,9 +675,7 @@ public func notificationsAndSoundsController(context: AccountContext, exceptions
|
||||
ActionSheetButtonItem(title: presentationData.strings.Notifications_Reset, color: .destructive, action: { [weak actionSheet] in
|
||||
actionSheet?.dismissAnimated()
|
||||
|
||||
let modifyPeers = context.account.postbox.transaction { transaction -> Void in
|
||||
transaction.resetAllPeerNotificationSettings(TelegramPeerNotificationSettings.defaultSettings)
|
||||
}
|
||||
let modifyPeers = context.engine.peers.resetAllPeerNotificationSettings()
|
||||
let updateGlobal = updateGlobalNotificationSettingsInteractively(postbox: context.account.postbox, { _ in
|
||||
return GlobalNotificationSettingsSet.defaultSettings
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user