Fix navigation to quoted replies outside load window.

This commit is contained in:
Matthew Chen 2019-01-29 13:39:15 -05:00
parent ef62bcd004
commit 3d1b930e06
2 changed files with 12 additions and 0 deletions

View File

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

View File

@ -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;
}