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
pull/1011/head
withchao 10 months ago committed by GitHub
parent f2977b6837
commit db9dbd4385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save