Skip to content

Commit

Permalink
[trello.com/c/ZjVRtten] Fixed: extra scroll in chat
Browse files Browse the repository at this point in the history
  • Loading branch information
IanaaDvlp committed Nov 30, 2024
1 parent b62af53 commit e03602b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Adamant/App/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,15 @@ extension AppDelegate {
let chatVC = chatVCNav.viewControllers.first as? ChatViewController,
chatVC.viewModel.chatroom?.partner?.address == senderAddress
{
chatVC.messagesCollectionView.scrollToLastItem()
chatVC.messagesCollectionView.scrollToBottom(animated: true)
return
}

if
let chatVC = chatListNav.viewControllers.last as? ChatViewController,
chatVC.viewModel.chatroom?.partner?.address == senderAddress
{
chatVC.messagesCollectionView.scrollToLastItem()
chatVC.messagesCollectionView.scrollToBottom(animated: true)
return
}

Expand Down

0 comments on commit e03602b

Please sign in to comment.