From 01f63792f817c599eabc7433eef07f0392c11b9c Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 5 Oct 2018 13:19:46 -0400 Subject: [PATCH] Respond to CR. --- SignalMessaging/profiles/ProfileFetcherJob.swift | 7 +++++++ 1 file changed, 7 insertions(+) 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) {