Convert duplicate timestamp fail to log.

This commit is contained in:
Matthew Chen 2018-02-23 12:28:38 -05:00
parent 42e1369596
commit ad78b1ea53

View file

@ -363,7 +363,7 @@ NSString *const OWSReadReceiptManagerAreReadReceiptsEnabled = @"areReadReceiptsE
ofClass:[TSOutgoingMessage class]
withTransaction:transaction];
if (messages.count > 1) {
OWSFail(@"%@ More than one matching message with timestamp: %llu.", self.logTag, sentTimestamp);
DDLogError(@"%@ More than one matching message with timestamp: %llu.", self.logTag, sentTimestamp);
}
if (messages.count > 0) {
// TODO: We might also need to "mark as read by recipient" any older messages