Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent 18a8efe1a9
commit 0b64ecf675

@ -1598,6 +1598,10 @@ typedef enum : NSUInteger {
if (hasEarlierUnseenMessages && !self.focusMessageIdOnOpen) {
// Ensure view items are updated before trying to scroll to the
// unread indicator.
//
// loadNMoreMessages calls resetMappings which calls ensureDynamicInteractions,
// which may move the unread indicator, and for scrollToUnreadIndicatorAnimated
// to work properly, the view items need to be updated to reflect that change.
[[OWSPrimaryStorage sharedManager] updateUIDatabaseConnectionToLatest];
[self scrollToUnreadIndicatorAnimated];

Loading…
Cancel
Save