             }
         }
 
-        showButtonScrollToBottom = !chatLogIsAtBottom()
+        scrollToBottomButtonIsVisible = !chatLogIsAtBottom()
     }
 }
 

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

        if scrollView.contentOffset.y < -10 {

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

    func resetMessageSending() {
