Respond to CR.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 6d356e4b67
commit df1b3418d2

@ -635,12 +635,11 @@ NS_ASSUME_NONNULL_BEGIN
// Any messages sent from the current user - from this device or another - should be
// automatically marked as read.
if ([TSAccountManager isRegistered]) {
OWSAssert([TSAccountManager isRegistered]);
BOOL shouldMarkMessageAsRead = [envelope.source isEqualToString:[TSAccountManager localNumber]];
if (shouldMarkMessageAsRead) {
[incomingMessage markAsReadLocallyWithTransaction:transaction];
}
}
// Android allows attachments to be sent with body.
if ([attachmentIds count] > 0 && body != nil && ![body isEqualToString:@""]) {

Loading…
Cancel
Save