Skip to content

Commit 983f8a3

Browse files
authored
Merge pull request #906 from Adamant-im/trello.com/c/MHVacf31
Fix "go up" button on the chats screen after logout and entering again
2 parents 428bed9 + beafd7b commit 983f8a3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Adamant/Modules/ChatsList/ChatListViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ final class ChatListViewController: KeyboardObservingViewController {
205205

206206
override func viewWillAppear(_ animated: Bool) {
207207
super.viewWillAppear(animated)
208+
let offsetY = tableView.contentOffset.y + tableView.safeAreaInsets.top
209+
scrollUpButton.isHidden = offsetY < cellHeight * 0.75
208210

209211
if UIDevice.current.userInterfaceIdiom == .phone {
210212
if let indexPath = tableView.indexPathForSelectedRow {

0 commit comments

Comments
 (0)