From 5eff2f439d7196d2f3db360647f3741beaba2ef1 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Sat, 19 Dec 2020 08:12:13 -0300 Subject: [PATCH] Respond to CR. --- .../ConversationView/ConversationViewController.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m index f0c40c5095..c19a650463 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m @@ -4010,12 +4010,12 @@ typedef enum : NSUInteger { self.collectionView.scrollIndicatorInsets = newInsets; }]; - if (!didChangeInsets) { - return; - } - // Adjust content offset to prevent the presented keyboard from obscuring content. - if (!self.hasAppearedAndHasAppliedFirstLoad) { + if (!didChangeInsets) { + // Do nothing. + // + // If content inset didn't change, no need to update content offset. + } else if (!self.hasAppearedAndHasAppliedFirstLoad) { // Do nothing. } else if (wasScrolledToBottom) { // If we were scrolled to the bottom, don't do any fancy math. Just stay at the bottom.