         let sizeHeight = collectionView?.contentSize.height ?? 0
         let offset = CGPoint(x: 0, y: max(sizeHeight - boundsHeight, 0))
         collectionView?.setContentOffset(offset, animated: animated)
-        showButtonScrollToBottom = false
+        scrollToBottomButtonIsVisible = false
     }
 
     func resetMessageSending() {

            }
        }

        showButtonScrollToBottom = !chatLogIsAtBottom()
    }
}


extension ChatViewController {
    override func scrollViewDidScroll(_ scrollView: UIScrollView) {
        super.scrollViewDidScroll(scrollView)

        updateKeyboardConstraints()

        if scrollView.contentOffset.y < -10 {
