Remove unneeded debug assertions
This commit is contained in:
parent
d4f026f6c8
commit
e68dbe306d
|
@ -696,9 +696,9 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType)
|
|||
|
||||
if (self.hasBodyText) {
|
||||
if (self.messageCellType == OWSMessageCellType_Unknown) {
|
||||
OWSAssertDebug(message.attachmentIds.count == 0
|
||||
|| (message.attachmentIds.count == 1 &&
|
||||
[message oversizeTextAttachmentWithTransaction:transaction] != nil));
|
||||
// OWSAssertDebug(message.attachmentIds.count == 0
|
||||
// || (message.attachmentIds.count == 1 &&
|
||||
// [message oversizeTextAttachmentWithTransaction:transaction] != nil));
|
||||
self.messageCellType = OWSMessageCellType_TextOnlyMessage;
|
||||
}
|
||||
OWSAssertDebug(self.displayableBodyText);
|
||||
|
|
|
@ -738,7 +738,7 @@ NSString *NSStringForOutgoingMessageRecipientState(OWSOutgoingMessageRecipientSt
|
|||
TSOutgoingMessageRecipientState *_Nullable recipientState
|
||||
= message.recipientStateMap[recipientId];
|
||||
if (!recipientState) {
|
||||
OWSFailDebug(@"Missing recipient state for delivered recipient: %@", recipientId);
|
||||
// OWSFailDebug(@"Missing recipient state for delivered recipient: %@", recipientId);
|
||||
return;
|
||||
}
|
||||
if (recipientState.state != OWSOutgoingMessageRecipientStateSent) {
|
||||
|
@ -762,7 +762,7 @@ NSString *NSStringForOutgoingMessageRecipientState(OWSOutgoingMessageRecipientSt
|
|||
TSOutgoingMessageRecipientState *_Nullable recipientState
|
||||
= message.recipientStateMap[recipientId];
|
||||
if (!recipientState) {
|
||||
OWSFailDebug(@"Missing recipient state for delivered recipient: %@", recipientId);
|
||||
// OWSFailDebug(@"Missing recipient state for delivered recipient: %@", recipientId);
|
||||
return;
|
||||
}
|
||||
if (recipientState.state != OWSOutgoingMessageRecipientStateSent) {
|
||||
|
|
Loading…
Reference in New Issue