Add allow_otr option (doesn't nothing yet)
This commit is contained in:
parent
a50e2d73e5
commit
e2c97e389f
27
converse.js
27
converse.js
@ -49,19 +49,21 @@
|
|||||||
this.auto_list_rooms = false;
|
this.auto_list_rooms = false;
|
||||||
this.auto_subscribe = false;
|
this.auto_subscribe = false;
|
||||||
this.bosh_service_url = undefined; // The BOSH connection manager URL.
|
this.bosh_service_url = undefined; // The BOSH connection manager URL.
|
||||||
|
this.callback = callback || function () {};
|
||||||
this.debug = false;
|
this.debug = false;
|
||||||
this.hide_muc_server = false;
|
this.hide_muc_server = false;
|
||||||
this.i18n = locales.en;
|
this.i18n = locales.en;
|
||||||
|
this.allow_otr = true;
|
||||||
this.prebind = false;
|
this.prebind = false;
|
||||||
this.show_controlbox_by_default = false;
|
this.show_controlbox_by_default = false;
|
||||||
this.xhr_user_search = false;
|
|
||||||
this.xhr_custom_status = false;
|
|
||||||
this.testing = false; // Exposes sensitive data for testing. Never set to true in production systems!
|
this.testing = false; // Exposes sensitive data for testing. Never set to true in production systems!
|
||||||
this.callback = callback || function () {};
|
this.xhr_custom_status = false;
|
||||||
|
this.xhr_user_search = false;
|
||||||
|
|
||||||
|
var FINISHED = 'finished';
|
||||||
var UNENCRYPTED = 'unencrypted';
|
var UNENCRYPTED = 'unencrypted';
|
||||||
var UNVERIFIED= 'unverified';
|
var UNVERIFIED= 'unverified';
|
||||||
var VERIFIED= 'verified';
|
var VERIFIED= 'verified';
|
||||||
var FINISHED = 'finished';
|
|
||||||
|
|
||||||
// Allow only the whitelisted settings attributes to be overwritten,
|
// Allow only the whitelisted settings attributes to be overwritten,
|
||||||
// nothing else.
|
// nothing else.
|
||||||
@ -70,19 +72,20 @@
|
|||||||
'auto_list_rooms',
|
'auto_list_rooms',
|
||||||
'auto_subscribe',
|
'auto_subscribe',
|
||||||
'bosh_service_url',
|
'bosh_service_url',
|
||||||
'fullname',
|
'connection',
|
||||||
'debug',
|
'debug',
|
||||||
|
'fullname',
|
||||||
'hide_muc_server',
|
'hide_muc_server',
|
||||||
'i18n',
|
'i18n',
|
||||||
'prebind',
|
|
||||||
'show_controlbox_by_default',
|
|
||||||
'xhr_user_search',
|
|
||||||
'xhr_custom_status',
|
|
||||||
'connection',
|
|
||||||
'testing',
|
|
||||||
'jid',
|
'jid',
|
||||||
|
'allow_otr',
|
||||||
|
'prebind',
|
||||||
|
'rid',
|
||||||
|
'show_controlbox_by_default',
|
||||||
'sid',
|
'sid',
|
||||||
'rid'
|
'testing',
|
||||||
|
'xhr_custom_status',
|
||||||
|
'xhr_user_search'
|
||||||
];
|
];
|
||||||
_.extend(this, _.pick(settings, whitelist));
|
_.extend(this, _.pick(settings, whitelist));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user