From d2ce4192cc38932f0ddc9d6be69e35cc47611cb7 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Wed, 8 Dec 2021 18:30:23 +0800 Subject: [PATCH] rpc protocol update --- internal/rpc/chat/send_msg.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/rpc/chat/send_msg.go b/internal/rpc/chat/send_msg.go index d81e9d580..dd4090435 100644 --- a/internal/rpc/chat/send_msg.go +++ b/internal/rpc/chat/send_msg.go @@ -223,6 +223,9 @@ func modifyMessageByUserMessageReceiveOpt(userID, sourceID string, sessionType i case constant.NotReceiveMessage: return false case constant.ReceiveNotNotifyMessage: + if msg.Options == nil { + msg.Options = make(map[string]int32, 2) + } utils.SetSwitchFromOptions(msg.Options, "offlinePush", 0) return true }