Commit 38d7723b authored by JC Brand's avatar JC Brand

Don't call trimChats when not in overlayed mode

parent 078281d0
......@@ -52691,7 +52691,9 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_1__["default"].plugins
_show() {
const _converse = this.__super__._converse;
if (!this.model.get('minimized')) {
if (_converse.view_mode !== 'overlayed') {
return this.__super__._show.apply(this, arguments);
} else if (!this.model.get('minimized')) {
this.__super__._show.apply(this, arguments);
_converse.chatboxviews.trimChats(this);
......@@ -82,7 +82,9 @@ converse.plugins.add('converse-minimize', {
_show () {
const { _converse } = this.__super__;
if (!this.model.get('minimized')) {
if (_converse.view_mode !== 'overlayed') {
return this.__super__._show.apply(this, arguments);
} else if (!this.model.get('minimized')) {
this.__super__._show.apply(this, arguments);
_converse.chatboxviews.trimChats(this);
} else {
......
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