From b83fde645c3f41f2f6c064278adaf1276a50e708 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Mon, 13 Nov 2023 15:53:31 +0800 Subject: [PATCH] fix: the original message referenced by the pull message processing is withdrawn --- pkg/common/db/controller/msg.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkg/common/db/controller/msg.go b/pkg/common/db/controller/msg.go index 121fb51a5..e395ca794 100644 --- a/pkg/common/db/controller/msg.go +++ b/pkg/common/db/controller/msg.go @@ -461,15 +461,10 @@ func (db *commonMsgDatabase) handlerDBMsg(ctx context.Context, userID, conversat log.ZError(ctx, "GetMsgBySeqIndexIn1Doc", err, "conversationID", conversationID, "seq", quoteMsg.QuoteMessage.Seq) return } - if len(msgs) == 0 { - quoteMsg.QuoteMessage = nil - } else { - if msgs[0].Msg.ContentType == constant.MsgRevokeNotification { - quoteMsg.QuoteMessage = nil - //quoteMsg.QuoteMessage.ContentType = constant.MsgRevokeNotification - //quoteMsg.QuoteMessage.Content = msgs[0].Msg.Content - } + if len(msgs) != 0 && msgs[0].Msg.ContentType != constant.MsgRevokeNotification { + return } + quoteMsg.QuoteMessage = nil data, err := json.Marshal("eMsg) if err != nil { log.ZError(ctx, "json.Marshal", err)