From 4ed43854bdcec6b9481358f2c6aed4d6f9d20785 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 18 Aug 2018 18:25:38 +0200 Subject: [PATCH] Bugfix. Items need to go inside the list --- spec/omemo.js | 14 ++++++++------ src/converse-omemo.js | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/spec/omemo.js b/spec/omemo.js index ccb5d8074..80487f133 100644 --- a/spec/omemo.js +++ b/spec/omemo.js @@ -360,9 +360,10 @@ ''+ ''+ ''+ - ''+ - ''+ - ''+ + ''+ + ''+ + ''+ + ''+ ''+ ''+ ''+ @@ -669,9 +670,10 @@ ''+ ''+ ''+ - ''+ - ''+ - ''+ + ''+ + ''+ + ''+ + ''+ ''+ ''+ ''+ diff --git a/src/converse-omemo.js b/src/converse-omemo.js index 26072af6c..14cf80894 100644 --- a/src/converse-omemo.js +++ b/src/converse-omemo.js @@ -734,7 +734,7 @@ }).c('pubsub', {'xmlns': Strophe.NS.PUBSUB}) .c('publish', {'node': Strophe.NS.OMEMO_DEVICELIST}) .c('item') - .c('list', {'xmlns': Strophe.NS.OMEMO}).up() + .c('list', {'xmlns': Strophe.NS.OMEMO}) _.each(this.devices.where({'active': true}), (device) => { stanza.c('device', {'id': device.get('id')}).up();