plugin XEP-0084: Fix double feature advertising:
`NS_AVATAR_METADATA` is already advertised by `add_pep_event`, adding it to `getDiscoInfo` too was resulting in double advertising, making the disco infos invalid for caching (resulting in other devices repeatedly requesting disco#info).
This commit is contained in:
parent
a750154c2f
commit
89c23c8a4c
1 changed files with 2 additions and 1 deletions
|
|
@ -236,8 +236,9 @@ class XEP_0084:
|
||||||
class XEP_0084_Handler(XMPPHandler):
|
class XEP_0084_Handler(XMPPHandler):
|
||||||
|
|
||||||
def getDiscoInfo(self, requestor, service, nodeIdentifier=""):
|
def getDiscoInfo(self, requestor, service, nodeIdentifier=""):
|
||||||
|
# NS_AVATAR_METADATA is already advertised by ``add_pep_event``.
|
||||||
|
# Only NS_AVATAR_DATA needs to be advertised here.
|
||||||
return [
|
return [
|
||||||
disco.DiscoFeature(NS_AVATAR_METADATA),
|
|
||||||
disco.DiscoFeature(NS_AVATAR_DATA),
|
disco.DiscoFeature(NS_AVATAR_DATA),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue