Adds a workaround for prosody stable bug.

This commit is contained in:
Damian Minkov 2014-10-08 14:19:26 +03:00
parent 0b2a3e19e7
commit c6f0b2c09e
1 changed files with 2 additions and 0 deletions

2
muc.js
View File

@ -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) {