feat: small fixes (MESSENGER-7565)

This commit is contained in:
Frank Rotermund
2025-09-25 14:12:00 +02:00
parent be743b6b23
commit 515c286bd8
5 changed files with 44 additions and 17 deletions

View File

@@ -38,13 +38,7 @@ enum SharedKeychain {
let data = value.data(using: .utf8)!
// Delete existing item first
let deleteQuery: [String: Any] = [
kSecClass as String: kSecClassGenericPassword,
kSecAttrAccount as String: account,
kSecAttrService as String: SharedKeychainConfig.service,
kSecAttrAccessGroup as String: SharedKeychainConfig.sharedGroup
]
SecItemDelete(deleteQuery as CFDictionary)
SharedKeychain.delete(account: account)
// Add new value
let addQuery: [String: Any] = [