diff util.js @ 52:2f45bee88b47

Add pubsub#access_model retrieval for the avatar node.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 23 May 2020 21:24:34 +0200
parents 021185105e2f
children 6d861d881b96
line wrap: on
line diff
--- a/util.js
+++ b/util.js
@@ -71,12 +71,12 @@ function parseErrorIq(iq) {
     return condition.localName + ': ' + text.textContent;
 }
 
-function retrieveConfiguration(connection)
+function retrieveConfiguration(connection, node)
 {
     return new Promise((resolve, reject) => {
         const iq = $iq({type: 'get'})
             .c('pubsub', {xmlns: 'http://jabber.org/protocol/pubsub#owner'})
-                .c('configure', {node: 'http://jabber.org/protocol/nick'});
+                .c('configure', {node: node});
         connection.sendIQ(iq, onNodeConfigure.bind(null, resolve, reject), reject);
     });
 }