Yann Leboulanger pushed to branch master at gajim / gajim
Commits: 7d4a9b91 by Yann Leboulanger at 2018-08-30T10:21:43Z better fix for joining groupchats with uppercase letters. Fixes #9198
- - - - -
1 changed file:
- gajim/gtk/join_groupchat.py
Changes:
===================================== gajim/gtk/join_groupchat.py ===================================== --- a/gajim/gtk/join_groupchat.py +++ b/gajim/gtk/join_groupchat.py @@ -203,7 +203,12 @@ class JoinGroupchatWindow(Gtk.ApplicationWindow): return
self.room_jid = '%s@%s' % (room, server) - self.room_jid = self.room_jid.lower() + + try: + self.room_jid = helpers.parse_jid(self.room_jid) + except helpers.InvalidFormat as error: + ErrorDialog(_('Invalid JID'), str(error), transient_for=self) + return
if app.in_groupchat(account, self.room_jid): # If we already in the groupchat, join_gc_room will bring @@ -223,12 +228,6 @@ class JoinGroupchatWindow(Gtk.ApplicationWindow): ErrorDialog(_('Invalid Nickname'), str(error), transient_for=self) return
- try: - helpers.parse_jid(self.room_jid) - except helpers.InvalidFormat as error: - ErrorDialog(_('Invalid JID'), str(error), transient_for=self) - return - if not app.account_is_connected(account): ErrorDialog( _('You are not connected to the server'),
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/7d4a9b91c8787ee2bd4821bba6a4aef93dd...