Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim-plugins
Commits
bfadef3c
Commit
bfadef3c
authored
Aug 26, 2017
by
Philipp Hörist
Browse files
[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
9ba84f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
omemo/xmpp.py
View file @
bfadef3c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment