Ignore 'minimized' flag when not in overlayed view mode
This commit is contained in:
parent
353a90788c
commit
5dc89fb2b3
@ -5,7 +5,8 @@ import { _converse, api } from '@converse/headless/core';
|
|||||||
|
|
||||||
function shouldShowChat (c) {
|
function shouldShowChat (c) {
|
||||||
const { CONTROLBOX_TYPE } = _converse;
|
const { CONTROLBOX_TYPE } = _converse;
|
||||||
return c.get('type') === CONTROLBOX_TYPE || !(c.get('hidden') || c.get('minimized'));
|
const is_minimized = (api.settings.get('view_mode') === 'overlayed' && c.get('minimized'));
|
||||||
|
return c.get('type') === CONTROLBOX_TYPE || !(c.get('hidden') || is_minimized);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user