Fix legacyNotificationsFix option

This commit is contained in:
Kylmakalle 2025-01-16 15:56:03 +02:00
parent 737867a380
commit cec4e7c83e

View File

@ -20,7 +20,7 @@ public final class CallKitIntegration {
return false
#else
if #available(iOSApplicationExtension 10.0, iOS 10.0, *) {
return Locale.current.regionCode?.lowercased() != "cn" && !UserDefaults.standard.bool(forKey: "legacyNotificationsFix")
return Locale.current.regionCode?.lowercased() != "cn" && !(UserDefaults(suiteName: "group.app.swiftgram.ios")?.bool(forKey: "legacyNotificationsFix") ?? false)
} else {
return false
}