Bugfix. Make sure to refresh

Otherwise we get an empty collection of features (due to features being
queried for a non-existent MUC)
This commit is contained in:
JC Brand 2019-01-10 13:11:20 +01:00
parent 01f0a65209
commit 58c29ea26b
2 changed files with 2 additions and 2 deletions

2
dist/converse.js vendored
View File

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

View File

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