fix: fill notification offlinePush by config (#2422)

* fix: fill notification offlinePush by config

* fix: fill notification OfflinePush by config
pull/2456/head
printlin 5 months ago committed by GitHub
parent ff66e97221
commit 220a01d7f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -324,6 +324,10 @@ func (s *NotificationSender) send(ctx context.Context, sendID, recvID string, co
options := config.GetOptionsByNotification(optionsConfig)
s.SetOptionsByContentType(ctx, options, contentType)
msg.Options = options
// fill Notification OfflinePush by config
offlineInfo.Title = optionsConfig.OfflinePush.Title
offlineInfo.Desc = optionsConfig.OfflinePush.Desc
offlineInfo.Ex = optionsConfig.OfflinePush.Ext
msg.OfflinePushInfo = &offlineInfo
req.MsgData = &msg
_, err = s.sendMsg(ctx, &req)

Loading…
Cancel
Save