From a7816961dde0146067dd151327a34a6d1352b850 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 25 May 2018 10:52:01 +0200 Subject: [PATCH] core (xmpp): fixed "Force server" param on Android --- sat/core/xmpp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sat/core/xmpp.py b/sat/core/xmpp.py index 4be9183b..e8be94c5 100644 --- a/sat/core/xmpp.py +++ b/sat/core/xmpp.py @@ -471,7 +471,8 @@ class SatXMPPClient(SatXMPPEntity, wokkel_client.XMPPClient): # FIXME: temporary hack as SRV is not working on android # TODO: remove this hack and fix SRV log.info(u"FIXME: Android hack, ignoring SRV") - host = user_jid.host + if host is None: + host = user_jid.host # for now we consider Android devices to be always phones self.identities = [disco.DiscoIdentity(u"client", u"phone", C.APP_NAME)]