Commit 58c29ea2 authored by JC Brand's avatar JC Brand

Bugfix. Make sure to refresh

Otherwise we get an empty collection of features (due to features being
queried for a non-existent MUC)
parent 01f0a652
...@@ -67236,7 +67236,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_6__["default"].plugins.add('converse-muc ...@@ -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.
...@@ -1063,7 +1063,7 @@ converse.plugins.add('converse-muc', { ...@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment