|
@@ -78,15 +78,15 @@
|
|
|
|
|
|
const ROOM_FEATURES = [
|
|
const ROOM_FEATURES = [
|
|
'passwordprotected', 'unsecured', 'hidden',
|
|
'passwordprotected', 'unsecured', 'hidden',
|
|
- 'public', 'membersonly', 'open', 'persistent',
|
|
|
|
|
|
+ 'publicroom', 'membersonly', 'open', 'persistent',
|
|
'temporary', 'nonanonymous', 'semianonymous',
|
|
'temporary', 'nonanonymous', 'semianonymous',
|
|
'moderated', 'unmoderated', 'mam_enabled'
|
|
'moderated', 'unmoderated', 'mam_enabled'
|
|
];
|
|
];
|
|
const ROOM_FEATURES_MAP = {
|
|
const ROOM_FEATURES_MAP = {
|
|
'passwordprotected': 'unsecured',
|
|
'passwordprotected': 'unsecured',
|
|
'unsecured': 'passwordprotected',
|
|
'unsecured': 'passwordprotected',
|
|
- 'hidden': 'public',
|
|
|
|
- 'public': 'hidden',
|
|
|
|
|
|
+ 'hidden': 'publicroom',
|
|
|
|
+ 'publicroom': 'hidden',
|
|
'membersonly': 'open',
|
|
'membersonly': 'open',
|
|
'open': 'membersonly',
|
|
'open': 'membersonly',
|
|
'persistent': 'temporary',
|
|
'persistent': 'temporary',
|
|
@@ -1526,8 +1526,9 @@
|
|
* the settings.
|
|
* the settings.
|
|
*/
|
|
*/
|
|
this.showSpinner();
|
|
this.showSpinner();
|
|
- this.fetchRoomConfiguration().then(
|
|
|
|
- this.renderConfigurationForm.bind(this));
|
|
|
|
|
|
+ this.fetchRoomConfiguration()
|
|
|
|
+ .then(this.renderConfigurationForm.bind(this))
|
|
|
|
+ .catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
|
|
},
|
|
},
|
|
|
|
|
|
submitNickname (ev) {
|
|
submitNickname (ev) {
|
|
@@ -2147,7 +2148,7 @@
|
|
this.chatroomview.model.on('change:open', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:open', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:passwordprotected', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:passwordprotected', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:persistent', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:persistent', this.onFeatureChanged, this);
|
|
- this.chatroomview.model.on('change:public', this.onFeatureChanged, this);
|
|
|
|
|
|
+ this.chatroomview.model.on('change:publicroom', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:semianonymous', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:semianonymous', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:temporary', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:temporary', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:unmoderated', this.onFeatureChanged, this);
|
|
this.chatroomview.model.on('change:unmoderated', this.onFeatureChanged, this);
|