diff --git a/internal/push/logic/push_to_client.go b/internal/push/logic/push_to_client.go index b178d49ea..13ea1bb68 100644 --- a/internal/push/logic/push_to_client.go +++ b/internal/push/logic/push_to_client.go @@ -21,8 +21,9 @@ import ( "Open_IM/pkg/utils" "context" "encoding/json" - "github.com/golang/protobuf/proto" "strings" + + "github.com/golang/protobuf/proto" ) type OpenIMContent struct { @@ -323,9 +324,9 @@ func GetOfflinePushOpts(pushMsg *pbPush.PushMsgReq) (opts push.PushOpts, err err opts.Signal.ClientMsgID = pushMsg.MsgData.ClientMsgID log.NewDebug(pushMsg.OperationID, opts) } - opts.IOSBadgeCount = pushMsg.MsgData.OfflinePushInfo.IOSBadgeCount - opts.IOSPushSound = pushMsg.MsgData.OfflinePushInfo.IOSPushSound } + opts.IOSBadgeCount = pushMsg.MsgData.OfflinePushInfo.IOSBadgeCount + opts.IOSPushSound = pushMsg.MsgData.OfflinePushInfo.IOSPushSound return opts, nil }