Adds a workaround for prosody stable bug.
This commit is contained in:
parent
0b2a3e19e7
commit
c6f0b2c09e
2
muc.js
2
muc.js
|
@ -239,6 +239,8 @@ Strophe.addConnectionPlugin('emuc', {
|
||||||
formsubmit.c('x', {xmlns: 'jabber:x:data', type: 'submit'});
|
formsubmit.c('x', {xmlns: 'jabber:x:data', type: 'submit'});
|
||||||
formsubmit.c('field', {'var': 'FORM_TYPE'}).c('value').t('http://jabber.org/protocol/muc#roomconfig').up().up();
|
formsubmit.c('field', {'var': 'FORM_TYPE'}).c('value').t('http://jabber.org/protocol/muc#roomconfig').up().up();
|
||||||
formsubmit.c('field', {'var': 'muc#roomconfig_roomsecret'}).c('value').t(key).up().up();
|
formsubmit.c('field', {'var': 'muc#roomconfig_roomsecret'}).c('value').t(key).up().up();
|
||||||
|
// Fixes a bug in prosody 0.9.+ https://code.google.com/p/lxmppd/issues/detail?id=373
|
||||||
|
formsubmit.c('field', {'var': 'muc#roomconfig_whois'}).c('value').t('anyone').up().up();
|
||||||
// FIXME: is muc#roomconfig_passwordprotectedroom required?
|
// FIXME: is muc#roomconfig_passwordprotectedroom required?
|
||||||
this.connection.sendIQ(formsubmit,
|
this.connection.sendIQ(formsubmit,
|
||||||
function (res) {
|
function (res) {
|
||||||
|
|
Loading…
Reference in New Issue