Skip to content

Commit

Permalink
Merge pull request #610 from Adamant-im/dev/trello.com/c/ZjVRtten
Browse files Browse the repository at this point in the history
[trello.com/c/ZjVRtten] Fixed: extra scroll in chat
  • Loading branch information
IanaaDvlp authored Dec 2, 2024
2 parents d6aa37d + e03602b commit b69b381
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 b69b381

Please sign in to comment.