Mercurial > libervia-pubsub
diff sat_pubsub/backend.py @ 452:8da3db1e82a9
backend: advertise RSM on disco
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 02 Jul 2021 15:18:09 +0200 |
parents | 074037832daf |
children | 1a179ad10125 |
line wrap: on
line diff
--- a/sat_pubsub/backend.py Sun Jun 06 19:42:57 2021 +0200 +++ b/sat_pubsub/backend.py Fri Jul 02 15:18:09 2021 +0200 @@ -1851,7 +1851,13 @@ # FIXME: upstream must be fixed so we can use custom (non pubsub#) disco features def getDiscoInfo(self, requestor, service, nodeIdentifier=''): - return [disco.DiscoFeature(pubsub.NS_ORDER_BY), disco.DiscoFeature(const.NS_FDP)] + return [ + disco.DiscoFeature(rsm.NS_RSM), + # cf. https://xmpp.org/extensions/xep-0060.html#subscriber-retrieve-returnsome + disco.DiscoFeature(const.NS_PUBSUB_RSM), + disco.DiscoFeature(pubsub.NS_ORDER_BY), + disco.DiscoFeature(const.NS_FDP) + ] def getDiscoItems(self, requestor, service, nodeIdentifier=''): return []