Add callback and errback to saveConfiguration method

This commit is contained in:
JC Brand 2013-05-12 13:52:44 +02:00
parent b470d2a571
commit 151464c881

View File

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