From 6d2882f6e70bc1c8794e0193a574dfe254b57d79 Mon Sep 17 00:00:00 2001 From: Pepijn Date: Thu, 17 Nov 2016 19:46:07 +0100 Subject: =?UTF-8?q?Don't=20show=20desktop=20notifications=20for=20messages?= =?UTF-8?q?=20entering=20the=20channel=20th=E2=80=A6=20(#4216)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Don't show desktop notifications for messages entering the channel the user is currently on Coding style fixes Allow notifications if browser tab is not focussed * Don't show desktop notifications for messages entering the channel the user is currently on Coding style fixes Allow notifications if browser tab is not focussed * Mute sound when a user doesn't get a desktop notification * Also play sound on desktop notifications * Fixed reviewer's remarks: * Removed double notification check * Removed direct links to browser store, created separate actions --- webapp/utils/constants.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'webapp/utils') diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx index 611f8ccd0..a90c4c502 100644 --- a/webapp/utils/constants.jsx +++ b/webapp/utils/constants.jsx @@ -156,7 +156,9 @@ export const ActionTypes = keyMirror({ SUGGESTION_CLEAR_SUGGESTIONS: null, SUGGESTION_COMPLETE_WORD: null, SUGGESTION_SELECT_NEXT: null, - SUGGESTION_SELECT_PREVIOUS: null + SUGGESTION_SELECT_PREVIOUS: null, + + BROWSER_CHANGE_FOCUS: null }); export const WebrtcActionTypes = keyMirror({ -- cgit v1.2.3-1-g7c22