Commit 0594c480 authored by JC Brand's avatar JC Brand

Only consider chat 'hidden' flag in relevant view modes

parent c3d8f120
......@@ -1143,7 +1143,8 @@ converse.plugins.add('converse-chat', {
*/
isHidden () {
// Note: This methods gets overridden by converse-minimize
return this.get('hidden') || this.isScrolledUp() || _converse.windowState === 'hidden';
const hidden = ['mobile', 'fullscreen'].includes(api.settings.get("view_mode")) && this.get('hidden');
return hidden || this.isScrolledUp() || _converse.windowState === 'hidden';
},
/**
......
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