core (xmpp): use "phone" type in identities when backend is started from Android
This commit is contained in:
parent
4a09638f32
commit
3d3d50d5b2
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue