From 3d3d50d5b24a7feff73480044c71822daf66d8ec Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 25 May 2018 10:52:01 +0200 Subject: [PATCH] core (xmpp): use "phone" type in identities when backend is started from Android --- sat/core/xmpp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sat/core/xmpp.py b/sat/core/xmpp.py index 51bf60d6..4be9183b 100644 --- a/sat/core/xmpp.py +++ b/sat/core/xmpp.py @@ -472,6 +472,8 @@ class SatXMPPClient(SatXMPPEntity, wokkel_client.XMPPClient): # 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: