Merge pull request #1726 from mattermost/PLT-1447

PLT-1447 fixing sending name in push notifications
This commit is contained in:
Christopher Speller
2015-12-15 07:07:35 -05:00

View File

@@ -642,9 +642,9 @@ func sendNotificationsAndForget(c *Context, post *model.Post, team *model.Team,
msg.ServerId = utils.CfgDiagnosticId
if channel.Type == model.CHANNEL_DIRECT {
msg.Message = channelName + " sent you a direct message"
msg.Message = senderName + " sent you a direct message"
} else {
msg.Message = profileMap[id].FirstName + " mentioned you in " + channelName
msg.Message = senderName + " mentioned you in " + channelName
}
httpClient := http.Client{}