summaryrefslogtreecommitdiffstats
path: root/app/notification.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-06-22 06:36:46 -0400
committerGeorge Goldberg <george@gberg.me>2017-06-22 11:36:46 +0100
commit3f1fca9463df27e8f795356ab6873d0d5bf4d634 (patch)
treeeb023486f6bac6a8156633fcc6adb5f4bd360583 /app/notification.go
parentac4e9909fa4f3f6c6a0d1e537d6039115d07a5e0 (diff)
downloadchat-3f1fca9463df27e8f795356ab6873d0d5bf4d634.tar.gz
chat-3f1fca9463df27e8f795356ab6873d0d5bf4d634.tar.bz2
chat-3f1fca9463df27e8f795356ab6873d0d5bf4d634.zip
PLT-6759 Show deactivated users in GMs (#6703)
* Show deactivated users in GMs * Fix runtime error when DMing deactivated user
Diffstat (limited to 'app/notification.go')
-rw-r--r--app/notification.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/notification.go b/app/notification.go
index 7ddba0bdb..2b9c9bcff 100644
--- a/app/notification.go
+++ b/app/notification.go
@@ -63,7 +63,10 @@ func SendNotifications(post *model.Post, team *model.Team, channel *model.Channe
otherUserId = userIds[0]
}
- mentionedUserIds[otherUserId] = true
+ if _, ok := profileMap[otherUserId]; ok {
+ mentionedUserIds[otherUserId] = true
+ }
+
if post.Props["from_webhook"] == "true" {
mentionedUserIds[post.UserId] = true
}