From b404fa3c2b375efac8a3481f70ac4080215ebffd Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 19 Jun 2017 11:11:01 -0400 Subject: [PATCH] Save identity from profile fetch even if there's no pre-existing identity. This allows us to view someone's SN before messaging them. // FREEBIE --- Signal/src/ProfileFetcherJob.swift | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Signal/src/ProfileFetcherJob.swift b/Signal/src/ProfileFetcherJob.swift index 619df461f..3d85d7d2d 100644 --- a/Signal/src/ProfileFetcherJob.swift +++ b/Signal/src/ProfileFetcherJob.swift @@ -96,11 +96,6 @@ class ProfileFetcherJob: NSObject { private func verifyIdentityUpToDateAsync(recipientId: String, latestIdentityKey: Data) { OWSDispatch.sessionStoreQueue().async { - if OWSIdentityManager.shared().identityKey(forRecipientId: recipientId) == nil { - // first time use, do nothing, since there's no change. - return - } - if OWSIdentityManager.shared().saveRemoteIdentity(latestIdentityKey, recipientId: recipientId) { Logger.info("\(self.TAG) updated identity key with fetched profile for recipient: \(recipientId)") self.storageManager.archiveAllSessions(forContact: recipientId)