PLT-6108 fixing to use senderId for push (#6245)

Этот коммит содержится в:
Corey Hulen
2017-04-27 04:51:19 -07:00
коммит произвёл Joram Wilander
родитель c540e80166
Коммит a6397b5ed9
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -494,7 +494,7 @@ func sendPushNotification(post *model.Post, user *model.User, channel *model.Cha
msg.TeamId = channel.TeamId
msg.ChannelId = channel.Id
msg.ChannelName = channel.Name
msg.UserId = user.Id
msg.SenderId = post.UserId
if ou, ok := post.Props["override_username"]; ok && ou != nil {
msg.OverrideUsername = ou.(string)

Просмотреть файл

@@ -36,7 +36,7 @@ type PushNotification struct {
ChannelId string `json:"channel_id"`
ChannelName string `json:"channel_name"`
Type string `json:"type"`
UserId string `json:"user_id"`
SenderId string `json:"sender_id"`
OverrideUsername string `json:"override_username"`
OverrideIconUrl string `json:"override_icon_url"`
FromWebhook string `json:"from_webhook"`