PLT-4598 add team id to push notification (#4623)
Этот коммит содержится в:
@@ -931,6 +931,7 @@ func sendPushNotification(post *model.Post, user *model.User, channel *model.Cha
|
|||||||
msg.Badge = int(badge.Data.(int64))
|
msg.Badge = int(badge.Data.(int64))
|
||||||
}
|
}
|
||||||
msg.Type = model.PUSH_TYPE_MESSAGE
|
msg.Type = model.PUSH_TYPE_MESSAGE
|
||||||
|
msg.TeamId = channel.TeamId
|
||||||
msg.ChannelId = channel.Id
|
msg.ChannelId = channel.Id
|
||||||
msg.ChannelName = channel.Name
|
msg.ChannelName = channel.Name
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ type PushNotification struct {
|
|||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
Badge int `json:"badge"`
|
Badge int `json:"badge"`
|
||||||
ContentAvailable int `json:"cont_ava"`
|
ContentAvailable int `json:"cont_ava"`
|
||||||
|
TeamId string `json:"team_id"`
|
||||||
ChannelId string `json:"channel_id"`
|
ChannelId string `json:"channel_id"`
|
||||||
ChannelName string `json:"channel_name"`
|
ChannelName string `json:"channel_name"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user