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)