Commit 6c3990ac authored by JC Brand's avatar JC Brand

Trying to fix `trimChats is not a function` on Travis

parent 49efe390
......@@ -52638,7 +52638,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_1__["default"].plugins
dependencies: ["converse-chatview", "converse-controlbox", "converse-muc", "converse-muc-views", "converse-headline"],
enabled(_converse) {
return _converse.view_mode == 'overlayed';
return _converse.view_mode === 'overlayed';
},
overrides: {
......@@ -53177,7 +53177,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_1__["default"].plugins
}).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
const debouncedTrim = _.debounce(ev => {
if (_converse.view_mode !== 'overlayed') {
if (_converse.view_mode !== 'overlayed' || !_converse.chatboxviews.trimChats) {
return;
}
......@@ -31,7 +31,7 @@ converse.plugins.add('converse-minimize', {
dependencies: ["converse-chatview", "converse-controlbox", "converse-muc", "converse-muc-views", "converse-headline"],
enabled (_converse) {
return _converse.view_mode == 'overlayed';
return _converse.view_mode === 'overlayed';
},
overrides: {
......@@ -518,7 +518,7 @@ converse.plugins.add('converse-minimize', {
const debouncedTrim = _.debounce(ev => {
if (_converse.view_mode !== 'overlayed') {
if (_converse.view_mode !== 'overlayed' || !_converse.chatboxviews.trimChats) {
return;
}
if (_converse.connection.connected) {
......
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