summaryrefslogtreecommitdiffstats
path: root/app/notification.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/notification.go')
-rw-r--r--app/notification.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/notification.go b/app/notification.go
index 2b9c9bcff..d2eb44b3a 100644
--- a/app/notification.go
+++ b/app/notification.go
@@ -515,7 +515,11 @@ func sendPushNotification(post *model.Post, user *model.User, channel *model.Cha
// If the post only has images then push an appropriate message
if len(post.Message) == 0 && post.FileIds != nil && len(post.FileIds) > 0 {
- msg.Message = senderName + userLocale("api.post.send_notifications_and_forget.push_image_only") + channelName
+ if channel.Type == model.CHANNEL_DIRECT {
+ msg.Message = senderName + userLocale("api.post.send_notifications_and_forget.push_image_only_dm")
+ } else {
+ msg.Message = senderName + userLocale("api.post.send_notifications_and_forget.push_image_only") + channelName
+ }
}
l4g.Debug("Sending push notification for user %v with msg of '%v'", user.Id, msg.Message)