diff options
author | enahum <nahumhbl@gmail.com> | 2017-02-23 11:08:48 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-23 11:08:48 -0300 |
commit | 748a416961923932e9b2969beb2730ee8c240ea7 (patch) | |
tree | f6ab74d35fc1be8b9015f8a89e7ac6058ec1d4fe /model/user.go | |
parent | ca7d3b6e7bc2e52cf40180a462492313f298e760 (diff) | |
download | chat-748a416961923932e9b2969beb2730ee8c240ea7.tar.gz chat-748a416961923932e9b2969beb2730ee8c240ea7.tar.bz2 chat-748a416961923932e9b2969beb2730ee8c240ea7.zip |
PLT-3193 Add channel notification preferences for push and email notiā¦ (#5500)
* PLT-3193 Add channel notification preferences for push and email notifications
* unit tests, model validation and localization
* Feedback review
* Adding back allowFromCache check
* Setting push and email to use default settings
* Move props as constants
* address feedback
Diffstat (limited to 'model/user.go')
-rw-r--r-- | model/user.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/model/user.go b/model/user.go index 7057ab101..2412c2ec7 100644 --- a/model/user.go +++ b/model/user.go @@ -16,9 +16,14 @@ import ( ) const ( - USER_NOTIFY_ALL = "all" - USER_NOTIFY_MENTION = "mention" - USER_NOTIFY_NONE = "none" + USER_NOTIFY_ALL = "all" + USER_NOTIFY_MENTION = "mention" + USER_NOTIFY_NONE = "none" + DESKTOP_NOTIFY_PROP = "desktop" + MARK_UNREAD_NOTIFY_PROP = "mark_unread" + PUSH_NOTIFY_PROP = "push" + EMAIL_NOTIFY_PROP = "email" + DEFAULT_LOCALE = "en" USER_AUTH_SERVICE_EMAIL = "email" USER_AUTH_SERVICE_USERNAME = "username" |