From e03602b58ee3c4774ec819e83b87586e3f1183de Mon Sep 17 00:00:00 2001 From: Iana Date: Sat, 30 Nov 2024 12:54:36 +0200 Subject: [PATCH] [trello.com/c/ZjVRtten] Fixed: extra scroll in chat --- Adamant/App/AppDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adamant/App/AppDelegate.swift b/Adamant/App/AppDelegate.swift index c740164ac..f4817e008 100644 --- a/Adamant/App/AppDelegate.swift +++ b/Adamant/App/AppDelegate.swift @@ -350,7 +350,7 @@ extension AppDelegate { let chatVC = chatVCNav.viewControllers.first as? ChatViewController, chatVC.viewModel.chatroom?.partner?.address == senderAddress { - chatVC.messagesCollectionView.scrollToLastItem() + chatVC.messagesCollectionView.scrollToBottom(animated: true) return } @@ -358,7 +358,7 @@ extension AppDelegate { let chatVC = chatListNav.viewControllers.last as? ChatViewController, chatVC.viewModel.chatroom?.partner?.address == senderAddress { - chatVC.messagesCollectionView.scrollToLastItem() + chatVC.messagesCollectionView.scrollToBottom(animated: true) return }