Philipp Hörist pushed to branch master at gajim / gajim
Commits: 3745f883 by Philipp Hörist at 2019-08-28T20:52:10Z GroupchatCreation: Handle <gone> error better
- - - - -
1 changed file:
- gajim/gtk/groupchat_creation.py
Changes:
===================================== gajim/gtk/groupchat_creation.py ===================================== @@ -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):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3745f88313a17a8613d618a3e71571707ae...