From 600a29ce910a52410d235ea4593ce5a756763c5c Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Mon, 13 Nov 2023 15:51:23 +0800 Subject: [PATCH] fix: the original message referenced by the pull message processing is withdrawn --- pkg/common/db/controller/msg.go | 5 +++-- pkg/common/db/controller/msg_test.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/common/db/controller/msg.go b/pkg/common/db/controller/msg.go index 3ec9408ea..121fb51a5 100644 --- a/pkg/common/db/controller/msg.go +++ b/pkg/common/db/controller/msg.go @@ -465,8 +465,9 @@ func (db *commonMsgDatabase) handlerDBMsg(ctx context.Context, userID, conversat quoteMsg.QuoteMessage = nil } else { if msgs[0].Msg.ContentType == constant.MsgRevokeNotification { - quoteMsg.QuoteMessage.ContentType = constant.MsgRevokeNotification - quoteMsg.QuoteMessage.Content = msgs[0].Msg.Content + quoteMsg.QuoteMessage = nil + //quoteMsg.QuoteMessage.ContentType = constant.MsgRevokeNotification + //quoteMsg.QuoteMessage.Content = msgs[0].Msg.Content } } data, err := json.Marshal("eMsg) diff --git a/pkg/common/db/controller/msg_test.go b/pkg/common/db/controller/msg_test.go index e81ad4b28..ba5aecd25 100644 --- a/pkg/common/db/controller/msg_test.go +++ b/pkg/common/db/controller/msg_test.go @@ -144,7 +144,7 @@ func Test_BatchInsertChat2DB(t *testing.T) { } func GetDB() *commonMsgDatabase { - config.Config.Mongo.Address = []string{"192.168.0.10:37017"} + config.Config.Mongo.Address = []string{"203.56.175.233:37017"} // config.Config.Mongo.Timeout = 60 config.Config.Mongo.Database = "openIM_v3" // config.Config.Mongo.Source = "admin"