plugin XEP-0277: ensure that max-items is set to max when creating a node

This commit is contained in:
Goffi 2023-03-20 12:01:13 +01:00
commit f11243bcee

View file

@ -852,6 +852,7 @@ class XEP_0277(object):
options = {
self._p.OPT_ACCESS_MODEL: access,
self._p.OPT_MAX_ITEMS: "max",
self._p.OPT_PERSIST_ITEMS: 1,
self._p.OPT_DELIVER_PAYLOADS: 1,
self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,
@ -1246,6 +1247,7 @@ class XEP_0277(object):
_options = {
self._p.OPT_ACCESS_MODEL: access,
self._p.OPT_MAX_ITEMS: "max",
self._p.OPT_PERSIST_ITEMS: 1,
self._p.OPT_DELIVER_PAYLOADS: 1,
self._p.OPT_SEND_ITEM_SUBSCRIBE: 1,