Use correct recipient ID when using sync message even if no contact

thread with self exists.

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 4c2a062fb4
commit 3eeb6c55d3

@ -281,7 +281,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
if (!recipient) {
NSError *error;
// possibly returns nil.
recipient = [self.contactsUpdater synchronousLookup:contactThread.contactIdentifier error:&error];
recipient = [self.contactsUpdater synchronousLookup:recipientContactId error:&error];
if (error) {
if (error.code == NOTFOUND_ERROR) {

Loading…
Cancel
Save