Commit 3745f883 authored by Philipp Hörist's avatar Philipp Hörist

GroupchatCreation: Handle <gone> error better

parent 51b176b7
Pipeline #4144 passed with stages
in 3 minutes and 10 seconds
......@@ -159,7 +159,10 @@ class CreateGroupchatWindow(Gtk.ApplicationWindow):
self._ui.create_button.set_sensitive(False)
def _set_warning_from_error(self, error):
text = MUC_DISCO_ERRORS.get(error.condition, to_user_string(error))
condition = error.condition
if condition == 'gone':
condition = 'already-exists'
text = MUC_DISCO_ERRORS.get(condition, to_user_string(error))
self._set_warning(text)
def _set_warning_from_error_code(self, error_code):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment