Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/omemo
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-08-26 22:48:37 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-08-26 22:50:19 +0300
commitbfadef3c677f7486f5426dd0fa9f46ffcd3b2fe9 (patch)
treeaac2d16cebcecc74781812126e1bcdd71d24b7d7 /omemo
parent9ba84f0926df054b86fd77017a5f406110b020a7 (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
Diffstat (limited to 'omemo')
-rw-r--r--omemo/xmpp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/omemo/xmpp.py b/omemo/xmpp.py
index c0a8fd5..48fcf3c 100644
--- a/omemo/xmpp.py
+++ b/omemo/xmpp.py
@@ -99,7 +99,8 @@ class BundleInformationQuery(Iq):
id_ = app.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)
@@ -142,7 +143,7 @@ class DevicelistQuery(Iq):
id_ = app.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)