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
This commit is contained in:
parent
c73c015387
commit
b404fa3c2b
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user