core, dependencies: Update Tx-XMPP to 0.12:
Tx-XMPP 0.12 has beaking change in `discoFeature.identities` because it now supports `xml:lang` attribute, so this update implies updating the code everywhere were this is used.
This commit is contained in:
parent
1548276702
commit
f6db575ee4
1 changed files with 747 additions and 696 deletions
|
|
@ -753,8 +753,11 @@ class Identity:
|
|||
except Exception as e:
|
||||
log.exception(f"Can't get disco infos for {entity}.")
|
||||
else:
|
||||
for (category, type_), name in disco_infos.identities.items():
|
||||
identities.append({"category": category, "type": type_, "name": name})
|
||||
for (category, type_, lang), name in disco_infos.identities.items():
|
||||
identity_entry = {"category": category, "type": type_, "name": name}
|
||||
if lang:
|
||||
identity_entry["lang"] = lang
|
||||
identities.append(identity_entry)
|
||||
|
||||
return id_data
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue