Yann Leboulanger pushed to branch master at gajim / gajim
Commits: 53a92bde by Yann Leboulanger at 2017-12-18T14:44:38+01:00 add get_own_jid method to ConnectionZeroconf. Fixes #8809
- - - - -
1 changed file:
- gajim/common/zeroconf/connection_zeroconf.py
Changes:
===================================== gajim/common/zeroconf/connection_zeroconf.py ===================================== --- a/gajim/common/zeroconf/connection_zeroconf.py +++ b/gajim/common/zeroconf/connection_zeroconf.py @@ -36,6 +36,8 @@ import socket import random random.seed()
+import nbxmpp + import signal if os.name != 'nt': signal.signal(signal.SIGPIPE, signal.SIG_DFL) @@ -122,6 +124,9 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf): def check_jid(self, jid): return jid
+ def get_own_jid(self): + return nbxmpp.JID(self.username + '@' + self.hostname) + def reconnect(self): # Do not try to reco while we are already trying self.time_to_reconnect = None
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/53a92bdee814751dcddbb67dbf122b20e59...
--- View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/53a92bdee814751dcddbb67dbf122b20e59... You're receiving this email because of your account on dev.gajim.org.