From 8f7ad79506e46541c28c34875c1b999e2071e6b3 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 29 Mar 2019 14:11:47 -0400 Subject: [PATCH] Only update scroll state to reflect keyboard changes if view has appeared. --- .../ConversationView/ConversationViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m index 2860fcc93..6ff11de17 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m @@ -3903,7 +3903,7 @@ typedef enum : NSUInteger { } 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 { + } else if (self.isViewCompletelyAppeared) { // If we were scrolled away from the bottom, shift the content in lockstep with the // keyboard, up to the limits of the content bounds. CGFloat insetChange = newInsets.bottom - oldInsets.bottom;