From 9e31b5de2a6c4544a1fd5664fa23b9727e665a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 5 Feb 2016 13:28:35 +0100 Subject: [FIX] mail: discuss notifications small fixes - discuss notifications are always sent natively if possible - clicking on native notifications focus the tab - clicking on native notifications closes them - granting notification permissions will display a confirmation notification --- addons/mail/static/src/js/window_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/mail/static/src/js/window_manager.js') diff --git a/addons/mail/static/src/js/window_manager.js b/addons/mail/static/src/js/window_manager.js index 3ee3007a7ea..a98a9de5cc0 100644 --- a/addons/mail/static/src/js/window_manager.js +++ b/addons/mail/static/src/js/window_manager.js @@ -302,7 +302,7 @@ core.bus.on('web_client_ready', null, function () { chat_manager.bus.on('anyone_listening', null, function (channel, query) { _.each(chat_sessions, function (session) { - if (channel.id === session.id && session.window.thread.is_at_bottom()) { + if (channel.id === session.id && session.window.thread.is_at_bottom() && !session.window.is_hidden) { query.is_displayed = true; } }); -- cgit v1.2.3