Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent 7b2dd19fb8
commit 4186ce9a72

@ -94,7 +94,8 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType)
_isGroupThread = isGroupThread;
_conversationStyle = conversationStyle;
_incomingMessageAuthorThread = ([interaction isKindOfClass:[TSIncomingMessage class]]
? [TSContactThread getOrCreateThreadWithContactId:((TSIncomingMessage *)interaction).authorId]
? [TSContactThread getThreadWithContactId:((TSIncomingMessage *)interaction).authorId
transaction:transaction]
: nil);
[self ensureViewState:transaction];
@ -108,7 +109,8 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType)
_interaction = interaction;
_incomingMessageAuthorThread = ([interaction isKindOfClass:[TSIncomingMessage class]]
? [TSContactThread getOrCreateThreadWithContactId:((TSIncomingMessage *)interaction).authorId]
? [TSContactThread getThreadWithContactId:((TSIncomingMessage *)interaction).authorId
transaction:transaction]
: nil);
self.hasViewState = NO;

Loading…
Cancel
Save