mark self-sent messages as read as soon as it was created

pull/1/head
Michael Kirk 7 years ago
parent c0c973de1c
commit 6bfd0f29ed

@ -466,10 +466,8 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
OWSAssertDebug(message.recipientIds.count == 1);
[self.dbConnection readWriteWithBlock:^(YapDatabaseReadWriteTransaction *transaction) {
for (NSString *recipientId in message.sendingRecipientIds) {
// MJK FIXME - read time == creation time. (the stakes are low here, self sent messages should have
// more or less identical timestamp vs. legacyTimestampForSorting)
[message updateWithReadRecipientId:recipientId
readTimestamp:message.timestampForLegacySorting
readTimestamp:message.timestamp
transaction:transaction];
}
}];

Loading…
Cancel
Save