Preserve default scroll state until conversation view is presented.

This commit is contained in:
Matthew Chen 2018-06-11 15:09:05 -04:00
parent b61838006d
commit bb266d03e4
1 changed files with 3 additions and 1 deletions

View File

@ -4115,7 +4115,9 @@ typedef enum : NSUInteger {
self.scrollDownButton.frame = newButtonFrame;
// Adjust content offset to prevent the presented keyboard from obscuring content.
if (wasScrolledToBottom) {
if (!self.viewHasEverAppeared) {
[self scrollToDefaultPosition];
} else if (wasScrolledToBottom) {
// If we were scrolled to the bottom, don't do any fancy math. Just stay at the bottom.
[self scrollToBottomAnimated:NO];
} else {