mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge pull request #1726 from mattermost/PLT-1447
PLT-1447 fixing sending name in push notifications
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user