summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-07-13 15:43:05 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-07-17 15:22:56 -0400
commite737ec3eb5d16a8ea371c0bd9379d8d0a937764c (patch)
treeb0aeb92fcb9ab093088d3a6bccf127377c2328a0 /api
parent079538d9e7d22cd8d5f782f4f7434858bd80d914 (diff)
downloadchat-e737ec3eb5d16a8ea371c0bd9379d8d0a937764c.tar.gz
chat-e737ec3eb5d16a8ea371c0bd9379d8d0a937764c.tar.bz2
chat-e737ec3eb5d16a8ea371c0bd9379d8d0a937764c.zip
Allow Users to be notified using @all, @channel, and their first name when other notifications are disabled
Diffstat (limited to 'api')
-rw-r--r--api/post.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/post.go b/api/post.go
index e62591273..5b7983386 100644
--- a/api/post.go
+++ b/api/post.go
@@ -298,11 +298,11 @@ func fireAndForgetNotifications(post *model.Post, teamId, teamUrl string) {
for _, k := range splitKeys {
keywordMap[k] = append(keywordMap[strings.ToLower(k)], profile.Id)
}
+ }
- // If turned on, add the user's case sensitive first name
- if profile.NotifyProps["first_name"] == "true" {
- keywordMap[profile.FirstName] = append(keywordMap[profile.FirstName], profile.Id)
- }
+ // If turned on, add the user's case sensitive first name
+ if profile.NotifyProps["first_name"] == "true" {
+ keywordMap[profile.FirstName] = append(keywordMap[profile.FirstName], profile.Id)
}
// Add @all to keywords if user has them turned on