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
|
|
@ -728,10 +728,9 @@ class APGateway:
|
|||
async def is_pubsub(self, jid_: jid.JID) -> bool:
|
||||
"""Indicate if a JID is a Pubsub service"""
|
||||
host_disco = await self.host.get_disco_infos(self.client, jid_)
|
||||
return ("pubsub", "service") in host_disco.identities and not (
|
||||
"pubsub",
|
||||
"pep",
|
||||
) in host_disco.identities
|
||||
return any(
|
||||
k[:2] == ("pubsub", "service") for k in host_disco.identities
|
||||
) and not any(k[:2] == ("pubsub", "pep") for k in host_disco.identities)
|
||||
|
||||
async def get_jid_and_node(self, ap_account: str) -> tuple[jid.JID, str | None]:
|
||||
"""Decode raw AP account handle to get XMPP JID and Pubsub Node
|
||||
|
|
|
|||
Loading…
Reference in a new issue