Mercurial > libervia-backend
changeset 2596:93d64ce7a429
core (xmpp): fixed "Force server" param on Android
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 25 May 2018 10:52:01 +0200 (2018-05-25) |
parents | 973d4551ffae |
children | 9446f1ea9eac |
files | sat/core/xmpp.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/core/xmpp.py Fri May 25 10:52:01 2018 +0200 +++ b/sat/core/xmpp.py Fri May 25 10:52:01 2018 +0200 @@ -471,7 +471,8 @@ # 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)]