From 198cbc68dbfe81b38cf1f2ebf2a0041148e09b19 Mon Sep 17 00:00:00 2001 From: Igor Solomennikov Date: Tue, 13 Jun 2023 21:38:19 -0700 Subject: [PATCH] Fix avatars animating in chat list when going back from a conversation. This was caused by OWSViewController's behavior of automatic tracking of the keyboard frame, which caused ChatListVC.view.layoutSubviews() being called within an animation block while navigation pop. Disable keyboard frame tracking for ChatListVC because we don't use keyboard metrics in that view. --- .../HomeView/Chat List/ChatListViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Signal/src/ViewControllers/HomeView/Chat List/ChatListViewController.swift b/Signal/src/ViewControllers/HomeView/Chat List/ChatListViewController.swift index fbf3492fb6..a0ed510067 100644 --- a/Signal/src/ViewControllers/HomeView/Chat List/ChatListViewController.swift +++ b/Signal/src/ViewControllers/HomeView/Chat List/ChatListViewController.swift @@ -27,6 +27,8 @@ public class ChatListViewController: OWSViewController { public override func viewDidLoad() { super.viewDidLoad() + keyboardObservationBehavior = .never + switch chatListMode { case .inbox: title = NSLocalizedString("CHAT_LIST_TITLE_INBOX", comment: "Title for the chat list's default mode.")