 import SimpleImageViewer
 
 // swiftlint:disable file_length type_body_length
-final class ChatViewController: SLKTextViewController {
+final class ChatViewController: SLKTextViewController, Alerter {
 
     var activityIndicator: LoaderView!
     @IBOutlet weak var activityIndicatorContainer: UIView! {

}

// MARK: Alerter
extension ChatViewController: Alerter {
    func alertApiError(_ error: APIError) {
        switch error {
        case .version(let available, let required):
            alert(title: localized("alert.unsupported_feature.title"),
                  message: String(format: localized("alert.unsupported_feature.message"), available.description, required.description))
        default:
            break
        }

        guard let subscription = subscription else { return }

        let client = API.current()?.client(CommandsClient.self)
        client?.runCommand(command: command, params: params, roomId: subscription.rid, errored: alertAPIError)
    }

    fileprivate func sendTextMessage(text: String) {
