Skip to content

Commit

Permalink
fix: fill notification offlinePush by config (#2422)
Browse files Browse the repository at this point in the history
* fix: fill notification offlinePush by config

* fix: fill notification OfflinePush by config
  • Loading branch information
printlin authored Jul 26, 2024
1 parent ff66e97 commit 220a01d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/rpcclient/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 220a01d

Please sign in to comment.