Mercurial > libervia-backend
changeset 2319:e715a29c4f9b
plugin XEP-0060: remove max_items when item_ids is set on getItems
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 08 Jul 2017 23:21:01 +0200 |
parents | ddb67c186f61 |
children | f4a0723042ee |
files | src/plugins/plugin_xep_0060.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0060.py Sat Jul 08 22:50:25 2017 +0200 +++ b/src/plugins/plugin_xep_0060.py Sat Jul 08 23:21:01 2017 +0200 @@ -335,6 +335,8 @@ - rsm_first, rsm_last, rsm_count, rsm_index: first, last, count and index value of RSMResponse - service, node: service and node used """ + if item_ids and max_items is not None: + max_items = None if rsm_request and item_ids: raise ValueError(u"items_id can't be used with rsm") if extra is None: