mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-6108 fixing to use senderId for push (#6245)
This commit is contained in:
committed by
Joram Wilander
parent
c540e80166
commit
a6397b5ed9
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user