 }
 
 // MARK: Alerter
-extension ChatViewController: Alerter {
-    func alertApiError(_ error: APIError) {
+extension ChatViewController {
+    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))
+            let message = String(format: localized("alert.unsupported_feature.message"), available.description, required.description)
+            alert(
+                title: localized("alert.unsupported_feature.title"),
+                message: message
+            )
         default:
             break
         }

import SimpleImageViewer

// swiftlint:disable file_length type_body_length
final class ChatViewController: SLKTextViewController {

    var activityIndicator: LoaderView!
    @IBOutlet weak var activityIndicatorContainer: UIView! {

        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) {
