|
|
@ -993,7 +993,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
|
|
|
|
__block NSException *encryptionException;
|
|
|
|
__block NSException *encryptionException;
|
|
|
|
// Mutating session state is not thread safe, so we operate on a serial queue, shared with decryption
|
|
|
|
// Mutating session state is not thread safe, so we operate on a serial queue, shared with decryption
|
|
|
|
// operations.
|
|
|
|
// operations.
|
|
|
|
dispatch_sync([OWSDispatch sessionCipher], ^{
|
|
|
|
dispatch_sync([OWSDispatch sessionStoreQueue], ^{
|
|
|
|
@try {
|
|
|
|
@try {
|
|
|
|
messageDict = [self encryptedMessageWithPlaintext:plainText
|
|
|
|
messageDict = [self encryptedMessageWithPlaintext:plainText
|
|
|
|
toRecipient:recipient.uniqueId
|
|
|
|
toRecipient:recipient.uniqueId
|
|
|
|