Commit 22960201 authored by Philipp Hörist's avatar Philipp Hörist

[omemo] Query only the most recent PEP items

This is due a update to ejabbered where Nodes
can now hold 10 items per default
parent 916c2db9
...@@ -98,7 +98,8 @@ class BundleInformationQuery(Iq): ...@@ -98,7 +98,8 @@ class BundleInformationQuery(Iq):
id_ = gajim.get_an_id() id_ = gajim.get_an_id()
attrs = {'id': id_} attrs = {'id': id_}
Iq.__init__(self, typ='get', attrs=attrs, to=contact_jid) 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) pubsub = PubsubNode(items)
self.addChild(node=pubsub) self.addChild(node=pubsub)
...@@ -138,7 +139,7 @@ class DevicelistQuery(Iq): ...@@ -138,7 +139,7 @@ class DevicelistQuery(Iq):
id_ = gajim.get_an_id() id_ = gajim.get_an_id()
attrs = {'id': id_} attrs = {'id': id_}
Iq.__init__(self, typ='get', attrs=attrs, to=contact_jid) 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) pubsub = PubsubNode(items)
self.addChild(node=pubsub) self.addChild(node=pubsub)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment