summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2017-02-27 17:55:12 -0300
committerGitHub <noreply@github.com>2017-02-27 17:55:12 -0300
commitf07571d79de1c00529136cd74c075ddfc4784b41 (patch)
treefe67b9879fe6e09d65bf36260b77185e7f2c6704 /webapp/utils
parent48f97a5a2a0754bfc0e639db7cce03943e990e32 (diff)
downloadchat-f07571d79de1c00529136cd74c075ddfc4784b41.tar.gz
chat-f07571d79de1c00529136cd74c075ddfc4784b41.tar.bz2
chat-f07571d79de1c00529136cd74c075ddfc4784b41.zip
PLT-3193 Add channel notification preferences for push notifications (#5512)
* PLT-3193 Add channel notification preferences for push and email notifications * Fixing UI * Removing email as preferences from the UI for now * move to action * fix client test
Diffstat (limited to 'webapp/utils')
-rw-r--r--webapp/utils/constants.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx
index 94fad3f35..fb256c60e 100644
--- a/webapp/utils/constants.jsx
+++ b/webapp/utils/constants.jsx
@@ -55,7 +55,10 @@ export const Preferences = {
CATEGORY_FLAGGED_POST: 'flagged_post',
CATEGORY_NOTIFICATIONS: 'notifications',
CATEGORY_FAVORITE_CHANNEL: 'favorite_channel',
- EMAIL_INTERVAL: 'email_interval'
+ EMAIL_INTERVAL: 'email_interval',
+ INTERVAL_IMMEDIATE: 30, // "immediate" is a 30 second interval
+ INTERVAL_FIFTEEN_MINUTES: 15 * 60,
+ INTERVAL_HOUR: 60 * 60
};
export const ActionTypes = keyMirror({