fix direct invite for membersonly room

This commit is contained in:
Christoph Scholz 2019-01-21 17:32:44 +01:00 committed by JC Brand
parent a1795c29ba
commit 9eee13e192
3 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
## 4.1.1 (unreleased)
- #1408 new config option `roomconfig_whitelist`
- #1421 fix direct invite for membersonly room
## 4.1.0 (2019-01-11)

2
dist/converse.js vendored
View File

@ -66542,7 +66542,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_6__["default"].plugins.add('converse-muc
* (String) recipient - JID of the person being invited
* (String) reason - Optional reason for the invitation
*/
if (this.get('membersonly')) {
if (this.features.get('membersonly')) {
// When inviting to a members-only groupchat, we first add
// the person to the member list by giving them an
// affiliation of 'member' (if they're not affiliated

View File

@ -464,7 +464,7 @@ converse.plugins.add('converse-muc', {
* (String) recipient - JID of the person being invited
* (String) reason - Optional reason for the invitation
*/
if (this.get('membersonly')) {
if (this.features.get('membersonly')) {
// When inviting to a members-only groupchat, we first add
// the person to the member list by giving them an
// affiliation of 'member' (if they're not affiliated