Commit 1a0b7ee1 authored by Philipp Hörist's avatar Philipp Hörist

Dont lose own JID from bind

_registered_name is None on a smacks resume.

Gajim creates on every connection attempt a new nbxmpp.NonBlockingClient
instance. This is why _registered_name is None when we go through a
smacks resume, because there is no bind event, and the new NonBlockingClient
instance has no knowledge of the previous successful bind.
parent 16fcb3a3
......@@ -1451,7 +1451,9 @@ class Connection(CommonConnection, ConnectionHandlers):
return
if hasattr(con, 'Resource'):
self.server_resource = con.Resource
self.registered_name = con._registered_name
if con._registered_name is not None:
log.info('Bound JID: %s', con._registered_name)
self.registered_name = con._registered_name
if app.config.get_per('accounts', self.name, 'anonymous_auth'):
# Get jid given by server
old_jid = app.get_jid_from_account(self.name)
......
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