Respond to CR.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-02-06 11:25:56 -05:00
parent 6d356e4b67
commit df1b3418d2

View File

@ -635,11 +635,10 @@ 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]) {
BOOL shouldMarkMessageAsRead = [envelope.source isEqualToString:[TSAccountManager localNumber]];
if (shouldMarkMessageAsRead) {
[incomingMessage markAsReadLocallyWithTransaction:transaction];
}
OWSAssert([TSAccountManager isRegistered]);
BOOL shouldMarkMessageAsRead = [envelope.source isEqualToString:[TSAccountManager localNumber]];
if (shouldMarkMessageAsRead) {
[incomingMessage markAsReadLocallyWithTransaction:transaction];
}
// Android allows attachments to be sent with body.