UCHAT-60 change default notification settings for new users (#7845)
* UCHAT-60 change default notification settings for new users * 1. Turn off "Case sensitive first name" in Words that trigger mentions. 2. Send Desktop Notifications for "Only for mentions and direct messages".
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
522f21e698
Коммит
5189e8ea10
@@ -228,16 +228,13 @@ func (u *User) SetDefaultNotifications() {
|
|||||||
u.NotifyProps = make(map[string]string)
|
u.NotifyProps = make(map[string]string)
|
||||||
u.NotifyProps["email"] = "true"
|
u.NotifyProps["email"] = "true"
|
||||||
u.NotifyProps["push"] = USER_NOTIFY_MENTION
|
u.NotifyProps["push"] = USER_NOTIFY_MENTION
|
||||||
u.NotifyProps["desktop"] = USER_NOTIFY_ALL
|
u.NotifyProps["desktop"] = USER_NOTIFY_MENTION
|
||||||
u.NotifyProps["desktop_sound"] = "true"
|
u.NotifyProps["desktop_sound"] = "true"
|
||||||
u.NotifyProps["mention_keys"] = u.Username + ",@" + u.Username
|
u.NotifyProps["mention_keys"] = u.Username + ",@" + u.Username
|
||||||
u.NotifyProps["channel"] = "true"
|
u.NotifyProps["channel"] = "true"
|
||||||
|
u.NotifyProps["push_status"] = STATUS_AWAY
|
||||||
if u.FirstName == "" {
|
u.NotifyProps["comments"] = "never"
|
||||||
u.NotifyProps["first_name"] = "false"
|
u.NotifyProps["first_name"] = "false"
|
||||||
} else {
|
|
||||||
u.NotifyProps["first_name"] = "true"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (user *User) UpdateMentionKeysFromUsername(oldUsername string) {
|
func (user *User) UpdateMentionKeysFromUsername(oldUsername string) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user