Fix broken assert in conversation view item.

pull/1/head
Matthew Chen 7 years ago
parent 114de70f31
commit aad93d2d89

@ -358,8 +358,11 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType)
OWSAssert(transaction);
OWSAssert(!self.hasViewState);
OWSAssert([self.interaction isKindOfClass:[TSOutgoingMessage class]] ||
[self.interaction isKindOfClass:[TSIncomingMessage class]]);
if (![self.interaction isKindOfClass:[TSOutgoingMessage class]]
&& ![self.interaction isKindOfClass:[TSIncomingMessage class]]) {
// Only text & attachment messages have "view state".
return;
}
self.hasViewState = YES;

Loading…
Cancel
Save