diff --git a/SignalMessaging/profiles/ProfileFetcherJob.swift b/SignalMessaging/profiles/ProfileFetcherJob.swift index c693610c7..acd4c8afc 100644 --- a/SignalMessaging/profiles/ProfileFetcherJob.swift +++ b/SignalMessaging/profiles/ProfileFetcherJob.swift @@ -180,6 +180,13 @@ public class ProfileFetcherJob: NSObject { profileNameEncrypted: signalServiceProfile.profileNameEncrypted, avatarUrlPath: signalServiceProfile.avatarUrlPath) + // Recipients should be in "UD delivery mode" IFF: + // + // * Their profile includes a unidentifiedAccessVerifier. + // * The unidentifiedAccessVerifier matches the "expected" value derived + // from their profile key (if any). + // + // Recipients should be in "normal delivery mode" otherwise. var supportsUnidentifiedDelivery = false if let unidentifiedAccessVerifier = signalServiceProfile.unidentifiedAccessVerifier, let udAccessKey = udManager.udAccessKeyForRecipient(recipientId) {