Commit 151464c8 authored by JC Brand's avatar JC Brand

Add callback and errback to saveConfiguration method

parent b470d2a5
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
return this._connection.sendIQ(stanza); return this._connection.sendIQ(stanza);
}, },
saveConfiguration: function(room, configarray) { saveConfiguration: function(room, configarray, callback, errback) {
/* Save a room configuration. /* Save a room configuration.
* Parameters: * Parameters:
* (String) room - The multi-user chat room name. * (String) room - The multi-user chat room name.
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
config.cnode(conf).up(); config.cnode(conf).up();
} }
stanza = config.tree(); stanza = config.tree();
return this._connection.sendIQ(stanza); return this._connection.sendIQ(stanza, callback, errback);
}, },
createInstantRoom: function(room) { createInstantRoom: function(room) {
......
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