Uses sendIQ method to send iq packets, this way the id attribute will be added.

This commit is contained in:
Damian Minkov 2014-12-02 13:17:15 +02:00
parent edb89a65d5
commit bb5d178220
1 changed files with 1 additions and 1 deletions

2
muc.js
View File

@ -111,7 +111,7 @@ Strophe.addConnectionPlugin('emuc', {
var create = $iq({type: 'set', to: this.roomjid})
.c('query', {xmlns: 'http://jabber.org/protocol/muc#owner'})
.c('x', {xmlns: 'jabber:x:data', type: 'submit'});
this.connection.send(create); // fire away
this.connection.sendIQ(create); // fire away
}
// Parse roles.