From ea1960d10a645321574412e431f9cddb73a30bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Fri, 21 Jun 2019 09:44:12 +0000 Subject: [FIX] mail: keep chat window hidden on receiving new message Before this commit, when receiving a new message from a hidden chat window, it was making it visible. Because of this, if we had focus on any other window, the focus was lost. Even more annoying, if we had focus on the left-most visible chat window, it moved to hidden menu, so that new chat window takes its place. This commit fixes the issue by keeping new chat windows hidden on receiving new messages, in case there is not enough available space. Task-ID 2026101 closes odoo/odoo#34291 Signed-off-by: Martin Geubelle (mge) --- addons/mail/static/src/js/services/mail_window_manager.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'addons/mail/static/src/js/services') diff --git a/addons/mail/static/src/js/services/mail_window_manager.js b/addons/mail/static/src/js/services/mail_window_manager.js index c1ed6855bed..ebb6a0ff2e7 100644 --- a/addons/mail/static/src/js/services/mail_window_manager.js +++ b/addons/mail/static/src/js/services/mail_window_manager.js @@ -134,10 +134,6 @@ MailManager.include({ }).always(function () { thread.isCreatingWindow = false; }); - } else if (!options.passively) { - if (threadWindow.isHidden()) { - this._makeThreadWindowVisible(threadWindow); - } } def.then(function () { threadWindow.updateVisualFoldState(); -- cgit v1.2.3