Skip to content
Snippets Groups Projects
Commit c9c066f8 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

jid when destroying room is optional

parent 19888fcd
No related branches found
No related tags found
No related merge requests found
......@@ -1668,18 +1668,19 @@ class GroupchatControl(ChatControlBase):
if response == gtk.RESPONSE_OK:
reason = instance.input_entry1.get_text().decode('utf-8')
jid = instance.input_entry2.get_text().decode('utf-8')
# Test jid
try:
jid = helpers.parse_jid(jid)
except:
dialogs.ErrorDialog(_('Invalid group chat Jabber ID'),
_('The group chat Jabber ID has not allowed characters.'))
return
if jid:
# Test jid
try:
jid = helpers.parse_jid(jid)
except:
dialogs.ErrorDialog(_('Invalid group chat Jabber ID'),
_('The group chat Jabber ID has not allowed characters.'))
return
else:
# Abord destroy operation
return
gajim.connections[self.account].destroy_gc_room(self.room_jid, reason,
jid)
jid)
def _on_bookmark_room_menuitem_activate(self, widget):
bm = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment