Add callback and errback to saveConfiguration method
This commit is contained in:
parent
b470d2a571
commit
151464c881
@ -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 @@
|
|||||||
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user