Browse Source

fix direct invite for membersonly room

Christoph Scholz 6 years ago
parent
commit
9eee13e192
3 changed files with 3 additions and 2 deletions
  1. 1 0
      CHANGES.md
  2. 1 1
      dist/converse.js
  3. 1 1
      src/headless/converse-muc.js

+ 1 - 0
CHANGES.md

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

+ 1 - 1
dist/converse.js

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

+ 1 - 1
src/headless/converse-muc.js

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