From cc4b3f58e0c422ed13b7e9ef83cf5d493ff7bd99 Mon Sep 17 00:00:00 2001 From: Nora Trapp Date: Wed, 22 Apr 2020 13:00:25 -0700 Subject: [PATCH] PINs should be enabled for anyone who sets up a PIN in KBS, regardless of the FF settings. --- SignalServiceKit/src/Util/RemoteConfigManager.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SignalServiceKit/src/Util/RemoteConfigManager.swift b/SignalServiceKit/src/Util/RemoteConfigManager.swift index 8701d175b1..e24943595e 100644 --- a/SignalServiceKit/src/Util/RemoteConfigManager.swift +++ b/SignalServiceKit/src/Util/RemoteConfigManager.swift @@ -21,6 +21,8 @@ public class RemoteConfig: NSObject { // If we've turned off the KBS feature we don't want to present the // pins for everyone migration even if this user is in the bucket. guard kbs else { return false } + // If you've setup a PIN, you have a PIN, regardless of the FF status + if KeyBackupService.hasMasterKey { return true } return isEnabled(.pinsForEveryone) || isEnabled(.pinsForEveryoneV2) }