Mercurial > libervia-backend
diff src/plugins/plugin_xep_0060.py @ 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 | 01f0a954d506 |
children | b1bbd2994ceb |
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: