 // MARK: UIScrollViewDelegate
 
 extension ChatViewController {
-
     override func scrollViewDidScroll(_ scrollView: UIScrollView) {
         super.scrollViewDidScroll(scrollView)
 

        view.bringSubview(toFront: activityIndicatorContainer)
        view.bringSubview(toFront: buttonScrollToBottom)
        view.bringSubview(toFront: textInputbar)
    }

    @objc internal func reconnect() {

                loadMoreMessagesFrom(date: message.createdAt)
            }
        }

        guard let view = buttonScrollToBottom.superview else { return }

        if chatLogIsAtBottom() {
            hideButtonScrollToBottom(animated: true)
        } else {
            buttonScrollToBottomMarginConstraint?.constant = -64
            UIView.animate(withDuration: 0.5) {
                view.layoutIfNeeded()
            }
        }
    }
}

// MARK: ChatPreviewModeViewProtocol
