         let sizeHeight = collectionView?.contentSize.height ?? 0
         let offset = CGPoint(x: 0, y: max(sizeHeight - boundsHeight, 0))
         collectionView?.setContentOffset(offset, animated: animated)
-        hideButtonScrollToBottom(animated: true)
-    }
-
-    fileprivate func hideButtonScrollToBottom(animated: Bool) {
-        buttonScrollToBottomMarginConstraint?.constant = 50
-
-        let action = {
-            self.buttonScrollToBottom.layoutIfNeeded()
-        }
-
-        if animated {
-            UIView.animate(withDuration: 0.5, animations: action)
-        } else {
-            action()
-        }
+        showButtonScrollToBottom = false
     }
 
     // MARK: SlackTextViewController

    @IBOutlet weak var buttonScrollToBottom: UIButton!
    var buttonScrollToBottomMarginConstraint: NSLayoutConstraint?

    weak var chatTitleView: ChatTitleView?
    weak var chatPreviewModeView: ChatPreviewModeView?
    weak var chatHeaderViewStatus: ChatHeaderViewStatus?

            }
        }

        showButtonScrollToBottom = !chatLogIsAtBottom()
    }
}

