diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-08-26 22:58:27 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-08-26 22:58:27 +0300 |
commit | 229602017c46af275c9edd6cb8040ae92bc6a184 (patch) | |
tree | 28ac77790459f83a49c0d081de100e6f2d946370 | |
parent | 916c2db9862fb40163e64a250a0ff67de40ce5a9 (diff) |
[omemo] Query only the most recent PEP items
This is due a update to ejabbered where Nodes
can now hold 10 items per default
-rw-r--r-- | omemo/xmpp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/omemo/xmpp.py b/omemo/xmpp.py index b7a6696..da28dfe 100644 --- a/omemo/xmpp.py +++ b/omemo/xmpp.py @@ -98,7 +98,8 @@ class BundleInformationQuery(Iq): id_ = gajim.get_an_id() attrs = {'id': id_} Iq.__init__(self, typ='get', attrs=attrs, to=contact_jid) - items = Node('items', attrs={'node': NS_BUNDLES + str(device_id)}) + items = Node('items', attrs={'node': NS_BUNDLES + str(device_id), + 'max_items': 1}) pubsub = PubsubNode(items) self.addChild(node=pubsub) @@ -138,7 +139,7 @@ class DevicelistQuery(Iq): id_ = gajim.get_an_id() attrs = {'id': id_} Iq.__init__(self, typ='get', attrs=attrs, to=contact_jid) - items = Node('items', attrs={'node': NS_DEVICE_LIST}) + items = Node('items', attrs={'node': NS_DEVICE_LIST, 'max_items': 1}) pubsub = PubsubNode(items) self.addChild(node=pubsub) |