                     } else {
                         self?.showAlert(.errorUnknown)
                     }
+                    sender.isEnabled = true
                     return
             }
 

        }
    }

    @IBAction func buttonCreateDidPressed(_ sender: Any) {
        guard let roomName = setValues["room name"] as? String else { return }
        guard let publicRoom = setValues["public room"] as? Bool else { return }
        guard let readOnlyRoom = setValues["read only room"] as? Bool else { return }


                    self?.dismiss(animated: true, completion: nil)
                } else {
                    sender.isEnabled = true
                    self?.showAlert(.errorUnknown)
                }
            }
