Commit 4ed43854 authored by JC Brand's avatar JC Brand

Bugfix. Items need to go inside the list

parent c4ac73cc
...@@ -360,9 +360,10 @@ ...@@ -360,9 +360,10 @@
'<pubsub xmlns="http://jabber.org/protocol/pubsub">'+ '<pubsub xmlns="http://jabber.org/protocol/pubsub">'+
'<publish node="eu.siacs.conversations.axolotl.devicelist">'+ '<publish node="eu.siacs.conversations.axolotl.devicelist">'+
'<item>'+ '<item>'+
'<list xmlns="eu.siacs.conversations.axolotl"/>'+ '<list xmlns="eu.siacs.conversations.axolotl">'+
'<device id="123456789"/>'+ '<device id="123456789"/>'+
'<device id="444"/>'+ '<device id="444"/>'+
'</list>'+
'</item>'+ '</item>'+
'</publish>'+ '</publish>'+
'</pubsub>'+ '</pubsub>'+
...@@ -669,9 +670,10 @@ ...@@ -669,9 +670,10 @@
'<pubsub xmlns="http://jabber.org/protocol/pubsub">'+ '<pubsub xmlns="http://jabber.org/protocol/pubsub">'+
'<publish node="eu.siacs.conversations.axolotl.devicelist">'+ '<publish node="eu.siacs.conversations.axolotl.devicelist">'+
'<item>'+ '<item>'+
'<list xmlns="eu.siacs.conversations.axolotl"/>'+ '<list xmlns="eu.siacs.conversations.axolotl">'+
'<device id="482886413b977930064a5888b92134fe"/>'+ '<device id="482886413b977930064a5888b92134fe"/>'+
'<device id="123456789"/>'+ '<device id="123456789"/>'+
'</list>'+
'</item>'+ '</item>'+
'</publish>'+ '</publish>'+
'</pubsub>'+ '</pubsub>'+
......
...@@ -734,7 +734,7 @@ ...@@ -734,7 +734,7 @@
}).c('pubsub', {'xmlns': Strophe.NS.PUBSUB}) }).c('pubsub', {'xmlns': Strophe.NS.PUBSUB})
.c('publish', {'node': Strophe.NS.OMEMO_DEVICELIST}) .c('publish', {'node': Strophe.NS.OMEMO_DEVICELIST})
.c('item') .c('item')
.c('list', {'xmlns': Strophe.NS.OMEMO}).up() .c('list', {'xmlns': Strophe.NS.OMEMO})
_.each(this.devices.where({'active': true}), (device) => { _.each(this.devices.where({'active': true}), (device) => {
stanza.c('device', {'id': device.get('id')}).up(); stanza.c('device', {'id': device.get('id')}).up();
......
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