tmp/wokkel (rsm): fixes elements count (items retrieval with RSM max = 0)
This commit is contained in:
parent
a336975a7a
commit
f3f5fa82a1
1 changed files with 3 additions and 2 deletions
|
|
@ -388,8 +388,9 @@ class PubSubClient(pubsub.PubSubClient):
|
|||
def cb(iq):
|
||||
items = []
|
||||
pubsub_elt = iq.pubsub
|
||||
for element in pubsub_elt.items.elements(pubsub.NS_PUBSUB, 'item'):
|
||||
items.append(element)
|
||||
if pubsub_elt.items:
|
||||
for element in pubsub_elt.items.elements(pubsub.NS_PUBSUB, 'item'):
|
||||
items.append(element)
|
||||
|
||||
try:
|
||||
rsm_response = RSMResponse.fromElement(pubsub_elt)
|
||||
|
|
|
|||
Loading…
Reference in a new issue