From c6f0b2c09e70b6d7b11c0e725f7130829b6d6067 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Wed, 8 Oct 2014 14:19:26 +0300 Subject: [PATCH] Adds a workaround for prosody stable bug. --- muc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/muc.js b/muc.js index 4eb1b8909..e4d3ac7a3 100644 --- a/muc.js +++ b/muc.js @@ -239,6 +239,8 @@ Strophe.addConnectionPlugin('emuc', { 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': '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? this.connection.sendIQ(formsubmit, function (res) {