mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-04 11:22:17 +08:00
fix: the original message referenced by the pull message processing is withdrawn
This commit is contained in:
parent
3ab07fb46f
commit
600a29ce91
@ -465,8 +465,9 @@ func (db *commonMsgDatabase) handlerDBMsg(ctx context.Context, userID, conversat
|
|||||||
quoteMsg.QuoteMessage = nil
|
quoteMsg.QuoteMessage = nil
|
||||||
} else {
|
} else {
|
||||||
if msgs[0].Msg.ContentType == constant.MsgRevokeNotification {
|
if msgs[0].Msg.ContentType == constant.MsgRevokeNotification {
|
||||||
quoteMsg.QuoteMessage.ContentType = constant.MsgRevokeNotification
|
quoteMsg.QuoteMessage = nil
|
||||||
quoteMsg.QuoteMessage.Content = msgs[0].Msg.Content
|
//quoteMsg.QuoteMessage.ContentType = constant.MsgRevokeNotification
|
||||||
|
//quoteMsg.QuoteMessage.Content = msgs[0].Msg.Content
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data, err := json.Marshal("eMsg)
|
data, err := json.Marshal("eMsg)
|
||||||
|
|||||||
@ -144,7 +144,7 @@ func Test_BatchInsertChat2DB(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetDB() *commonMsgDatabase {
|
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.Timeout = 60
|
||||||
config.Config.Mongo.Database = "openIM_v3"
|
config.Config.Mongo.Database = "openIM_v3"
|
||||||
// config.Config.Mongo.Source = "admin"
|
// config.Config.Mongo.Source = "admin"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user