From 32561b5616ad7dc5a383ed9f90fe2d3f5ec0a72e Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 6 Oct 2022 11:30:45 +0800 Subject: [PATCH] fix bug --- internal/push/logic/push_to_client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/push/logic/push_to_client.go b/internal/push/logic/push_to_client.go index b1b7d1d0a..cff59c1a6 100644 --- a/internal/push/logic/push_to_client.go +++ b/internal/push/logic/push_to_client.go @@ -22,6 +22,7 @@ import ( "strings" promePkg "Open_IM/pkg/common/prometheus" + "github.com/golang/protobuf/proto" ) @@ -137,6 +138,9 @@ func MsgToUser(pushMsg *pbPush.PushMsgReq) { title = constant.ContentType2PushContent[constant.Common] } + // detailContent = title + } + if detailContent == "" { detailContent = title } pushResult, err := offlinePusher.Push(UIDList, title, detailContent, pushMsg.OperationID, opts)