Commit c9546109 authored by JC Brand's avatar JC Brand

No need to call `validate` here

Since the plugin is not enabled when it matters.

updates #1374
parent 5dacb96b
......@@ -145,13 +145,6 @@ converse.plugins.add('converse-controlbox', {
},
ChatBox: {
validate (attrs, options) {
const { _converse } = this.__super__;
if (_converse.view_mode === 'embedded' && attrs.type === _converse.CONTROLBOX_TYPE) {
return 'Controlbox not relevant in embedded view mode';
}
},
initialize () {
if (this.get('id') === 'controlbox') {
this.set({'time_opened': moment(0).valueOf()});
......
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