Various fixes

This commit is contained in:
Ilya Laktyushin
2025-03-01 20:29:28 +04:00
parent e351bbfd42
commit 2adffc2ebc
4 changed files with 28 additions and 16 deletions

View File

@@ -346,7 +346,7 @@ public func incomingMessagePrivacyScreen(context: AccountContext, value: GlobalP
updateState { state in
var updatedState = state
updatedState.disableFor = updatedPeerIds
return state
return updatedState
}
let settings: SelectivePrivacySettings = .enableContacts(enableFor: updatedPeerIds, disableFor: [:], enableForPremium: false, enableForBots: false)
let _ = context.engine.privacy.updateSelectiveAccountPrivacySettings(type: .noPaidMessages, settings: settings).start()