         guard let subscription = subscription else { return }
 
         let client = API.current()?.client(CommandsClient.self)
-        client?.runCommand(command: command, params: params, roomId: subscription.rid, errored: alertApiError)
+        client?.runCommand(command: command, params: params, roomId: subscription.rid, errored: alertAPIError)
     }
 
     fileprivate func sendTextMessage(text: String) {

import SimpleImageViewer

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

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

}

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