Archive sessions on the 'session store' queue.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-06-22 18:14:21 -04:00
parent 793a7449b0
commit e9219743ff

View File

@ -198,7 +198,9 @@ NSString *const kNSNotificationName_IdentityStateDidChange = @"kNSNotificationNa
createdAt:[NSDate new]
verificationState:verificationState] save];
[self.storageManager archiveAllSessionsForContact:recipientId];
dispatch_async([OWSDispatch sessionStoreQueue], ^{
[self.storageManager archiveAllSessionsForContact:recipientId];
});
// Cancel any pending verification state sync messages for this recipient.
[self clearSyncMessageForRecipientId:recipientId];