diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-05-19 14:33:04 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-05-19 14:33:04 -0400 |
commit | 1492d1a3cbe551395aab9f6da27c91def62f51cb (patch) | |
tree | 1d1249ef5f66155cea994e44bf5c5a96703d0a1b /model | |
parent | fd24902194de00373fa710d5ed138fc1dfeab532 (diff) | |
download | chat-1492d1a3cbe551395aab9f6da27c91def62f51cb.tar.gz chat-1492d1a3cbe551395aab9f6da27c91def62f51cb.tar.bz2 chat-1492d1a3cbe551395aab9f6da27c91def62f51cb.zip |
PLT-2664 Split out push notifications from email notifications (#3049)
* Split out push and email notification logic, always send push notifications on mention
* Add user setting to control push notifications
* Minor changeto simplify code
Diffstat (limited to 'model')
-rw-r--r-- | model/user.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/model/user.go b/model/user.go index 15c281401..7dee67381 100644 --- a/model/user.go +++ b/model/user.go @@ -191,6 +191,7 @@ func (u *User) PreUpdate() { func (u *User) SetDefaultNotifications() { u.NotifyProps = make(map[string]string) u.NotifyProps["email"] = "true" + u.NotifyProps["push"] = USER_NOTIFY_MENTION u.NotifyProps["desktop"] = USER_NOTIFY_ALL u.NotifyProps["desktop_sound"] = "true" u.NotifyProps["mention_keys"] = u.Username + ",@" + u.Username |