summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/notification.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/notification.go b/app/notification.go
index 1318308f8..2e99ca03c 100644
--- a/app/notification.go
+++ b/app/notification.go
@@ -607,7 +607,7 @@ func (a *App) sendPushNotification(post *model.Post, user *model.User, channel *
if channel.Type == model.CHANNEL_DIRECT {
msg.Category = model.CATEGORY_CAN_REPLY
msg.Message = senderName + userLocale("api.post.send_notifications_and_forget.push_message")
- } else if wasMentioned || channel.Type == model.CHANNEL_GROUP {
+ } else if wasMentioned {
msg.Message = senderName + userLocale("api.post.send_notifications_and_forget.push_mention_no_channel")
} else {
msg.Message = senderName + userLocale("api.post.send_notifications_and_forget.push_non_mention_no_channel")
@@ -616,7 +616,7 @@ func (a *App) sendPushNotification(post *model.Post, user *model.User, channel *
if channel.Type == model.CHANNEL_DIRECT {
msg.Category = model.CATEGORY_CAN_REPLY
msg.Message = senderName + userLocale("api.post.send_notifications_and_forget.push_message")
- } else if wasMentioned || channel.Type == model.CHANNEL_GROUP {
+ } else if wasMentioned {
msg.Category = model.CATEGORY_CAN_REPLY
msg.Message = senderName + userLocale("api.post.send_notifications_and_forget.push_mention") + channelName
} else {