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.
This commit is contained in:
Igor Solomennikov 2023-06-13 21:38:19 -07:00
parent 128972e160
commit 198cbc68db

View File

@ -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.")