core (xmpp): fixed "Force server" param on Android

This commit is contained in:
Goffi 2018-05-25 10:52:01 +02:00
commit a7816961dd

View file

@ -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)]