Browse Source

Bugfix. Make sure to refresh

Otherwise we get an empty collection of features (due to features being
queried for a non-existent MUC)
JC Brand 6 years ago
parent
commit
58c29ea26b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      dist/converse.js
  2. 1 1
      src/headless/converse-muc.js

+ 1 - 1
dist/converse.js

@@ -67236,7 +67236,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_6__["default"].plugins.add('converse-muc
             this.autoConfigureChatRoom().then(() => this.refreshRoomFeatures());
             this.autoConfigureChatRoom().then(() => this.refreshRoomFeatures());
           } else if (_converse.muc_instant_rooms) {
           } else if (_converse.muc_instant_rooms) {
             // Accept default configuration
             // Accept default configuration
-            this.saveConfiguration().then(() => this.getRoomFeatures());
+            this.saveConfiguration().then(() => this.refreshRoomFeatures());
           } else {
           } else {
             this.trigger('configurationNeeded');
             this.trigger('configurationNeeded');
             return; // We haven't yet entered the groupchat, so bail here.
             return; // We haven't yet entered the groupchat, so bail here.

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

@@ -1063,7 +1063,7 @@ converse.plugins.add('converse-muc', {
                         this.autoConfigureChatRoom().then(() => this.refreshRoomFeatures());
                         this.autoConfigureChatRoom().then(() => this.refreshRoomFeatures());
                     } else if (_converse.muc_instant_rooms) {
                     } else if (_converse.muc_instant_rooms) {
                         // Accept default configuration
                         // Accept default configuration
-                        this.saveConfiguration().then(() => this.getRoomFeatures());
+                        this.saveConfiguration().then(() => this.refreshRoomFeatures());
                     } else {
                     } else {
                         this.trigger('configurationNeeded');
                         this.trigger('configurationNeeded');
                         return; // We haven't yet entered the groupchat, so bail here.
                         return; // We haven't yet entered the groupchat, so bail here.