# HG changeset patch # User Goffi # Date 1527238321 -7200 # Node ID 59ba387c17ea5a33cf2c149c416b8371b4fbe9bd # Parent d78eff6b4487d9af0294f5a3bf71227728e58cc6 core (xmpp): use "phone" type in identities when backend is started from Android diff -r d78eff6b4487 -r 59ba387c17ea sat/core/xmpp.py --- 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 @@ -472,6 +472,8 @@ # TODO: remove this hack and fix SRV log.info(u"FIXME: Android hack, ignoring SRV") 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)] hosts_map = host_app.memory.getConfig(None, "hosts_dict", {}) if host is None and user_jid.host in hosts_map: