diff options
| author | Géry Debongnie <ged@odoo.com> | 2016-02-05 13:28:35 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-02-05 14:09:19 +0100 |
| commit | 9e31b5de2a6c4544a1fd5664fa23b9727e665a67 (patch) | |
| tree | e1840da8f99d74bd25a2d15ccc8cc19e613a5b47 /addons/mail/static/src/js/window_manager.js | |
| parent | ce784ae93330aecf3008d2686c20829d730d7bd7 (diff) | |
[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
Diffstat (limited to 'addons/mail/static/src/js/window_manager.js')
| -rw-r--r-- | addons/mail/static/src/js/window_manager.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; } }); |
