Send and process 'recipient update' sync messages.

pull/2/head
Matthew Chen 7 years ago
parent e27e27cc3a
commit bb7d328267

@ -1396,14 +1396,8 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
if (message.hasSyncedTranscript) { if (message.hasSyncedTranscript) {
shouldSendTranscript = YES; shouldSendTranscript = YES;
} else if (AreRecipientUpdatesEnabled()) { } else if (AreRecipientUpdatesEnabled()) {
__block BOOL isGroupThread = NO; shouldSendTranscript = YES;
[self.dbConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) { isRecipientUpdate = YES;
isGroupThread = [message threadWithTransaction:transaction].isGroupThread;
}];
if (isGroupThread) {
shouldSendTranscript = YES;
isRecipientUpdate = YES;
}
} }
if (!shouldSendTranscript) { if (!shouldSendTranscript) {

Loading…
Cancel
Save