From db9dbd4385e723a256fce11fe1b2d791580069c7 Mon Sep 17 00:00:00 2001 From: withchao <48119764+withchao@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:44:47 +0800 Subject: [PATCH] fix: jpush return a nil pointer panic (#1005) * fix: repeated modification session notification * fix: repeated modification session notification * fix: jpush return a nil pointer panic --- internal/push/push_to_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/push/push_to_client.go b/internal/push/push_to_client.go index 50010ca84..de0ecc192 100644 --- a/internal/push/push_to_client.go +++ b/internal/push/push_to_client.go @@ -288,7 +288,7 @@ func (p *Pusher) offlinePushMsg(ctx context.Context, conversationID string, msg } func (p *Pusher) GetOfflinePushOpts(msg *sdkws.MsgData) (opts *offlinepush.Opts, err error) { - opts = &offlinepush.Opts{} + opts = &offlinepush.Opts{Signal: &offlinepush.Signal{}} // if msg.ContentType > constant.SignalingNotificationBegin && msg.ContentType < constant.SignalingNotificationEnd { // req := &sdkws.SignalReq{} // if err := proto.Unmarshal(msg.Content, req); err != nil {