Commit a4839a72 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't ask twice the password when we create an account and show correct page...

don't ask twice the password when we create an account and show correct page in vcard even we receive an empty vcard. Fixes #1560
parent c34adb6f
......@@ -1638,6 +1638,8 @@ class Connection:
path_to_file = os.path.join(gajim.VCARD_PATH, jid)
fil = open(path_to_file, 'w')
fil.close()
elif jid == our_jid:
self.dispatch('MYVCARD', {'jid': jid})
del self.awaiting_answers[id]
def _event_dispatcher(self, realm, event, data):
......@@ -1667,6 +1669,7 @@ class Connection:
self.connection = None
common.xmpp.features_nb.register(self.connection, data[0],
req, _on_register_result)
return
is_form = data[2]
if is_form:
conf = self.parse_data_form(data[1])
......
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