summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2019-06-21 09:44:12 +0000
committerAlexandre Kühn <aku@odoo.com>2019-06-24 16:04:27 +0000
commitea1960d10a645321574412e431f9cddb73a30bee (patch)
tree31c9890b4c6e3d5e4cc8fe45211fc53ea0d84450 /addons/mail/static/src
parent1db371721f3549276ee622e8b4369db7ce13863c (diff)
[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) <mge@openerp.com>
Diffstat (limited to 'addons/mail/static/src')
-rw-r--r--addons/mail/static/src/js/services/mail_window_manager.js4
1 files changed, 0 insertions, 4 deletions
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();