Fix navigation to quoted replies outside load window.

pull/1/head
Matthew Chen 6 years ago
parent ef62bcd004
commit 3d1b930e06

@ -106,6 +106,7 @@ typedef NS_ENUM(NSUInteger, ConversationUpdateItemType) {
- (BOOL)canLoadMoreItems;
- (nullable NSIndexPath *)ensureLoadWindowContainsQuotedReply:(OWSQuotedReplyModel *)quotedReply;
- (void)appendUnsavedOutgoingTextMessage:(TSOutgoingMessage *)outgoingMessage;
@end

@ -1582,6 +1582,17 @@ static const int kYapDatabaseRangeMaxLength = 25000;
transaction:transaction];
}];
self.collapseCutoffDate = [NSDate new];
[self ensureDynamicInteractions];
if (![self reloadViewItems]) {
OWSFailDebug(@"failed to reload view items in resetMapping.");
}
[self.delegate conversationViewModelDidUpdate:ConversationUpdate.reloadUpdate];
[self.delegate conversationViewModelRangeDidChange];
return indexPath;
}

Loading…
Cancel
Save