mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix intents donation
This commit is contained in:
@@ -274,19 +274,19 @@ public func intentsSettingsController(context: AccountContext) -> ViewController
|
||||
}
|
||||
let accountPeerId = context.account.peerId
|
||||
if previous.contacts && !updated.contacts {
|
||||
deleteAllSendMessageIntents(accountPeerId: accountPeerId, subject: .contact)
|
||||
deleteAllSendMessageIntents()
|
||||
}
|
||||
if previous.savedMessages && !updated.savedMessages {
|
||||
deleteAllSendMessageIntents(accountPeerId: accountPeerId, subject: .savedMessages)
|
||||
deleteAllSendMessageIntents()
|
||||
}
|
||||
if previous.privateChats && !updated.privateChats {
|
||||
deleteAllSendMessageIntents(accountPeerId: accountPeerId, subject: .privateChat)
|
||||
deleteAllSendMessageIntents()
|
||||
}
|
||||
if previous.groups && !updated.groups {
|
||||
deleteAllSendMessageIntents(accountPeerId: accountPeerId, subject: .group)
|
||||
deleteAllSendMessageIntents()
|
||||
}
|
||||
if previous.account != updated.account, let previousAccount = previous.account {
|
||||
deleteAllSendMessageIntents(accountPeerId: previousAccount)
|
||||
deleteAllSendMessageIntents()
|
||||
}
|
||||
})
|
||||
}, resetAll: {
|
||||
|
||||
Reference in New Issue
Block a user