mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
fix: the original message referenced by the pull message processing is withdrawn
This commit is contained in:
parent
600a29ce91
commit
b83fde645c
@ -461,15 +461,10 @@ func (db *commonMsgDatabase) handlerDBMsg(ctx context.Context, userID, conversat
|
|||||||
log.ZError(ctx, "GetMsgBySeqIndexIn1Doc", err, "conversationID", conversationID, "seq", quoteMsg.QuoteMessage.Seq)
|
log.ZError(ctx, "GetMsgBySeqIndexIn1Doc", err, "conversationID", conversationID, "seq", quoteMsg.QuoteMessage.Seq)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(msgs) == 0 {
|
if len(msgs) != 0 && msgs[0].Msg.ContentType != constant.MsgRevokeNotification {
|
||||||
quoteMsg.QuoteMessage = nil
|
return
|
||||||
} else {
|
|
||||||
if msgs[0].Msg.ContentType == constant.MsgRevokeNotification {
|
|
||||||
quoteMsg.QuoteMessage = nil
|
|
||||||
//quoteMsg.QuoteMessage.ContentType = constant.MsgRevokeNotification
|
|
||||||
//quoteMsg.QuoteMessage.Content = msgs[0].Msg.Content
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
quoteMsg.QuoteMessage = nil
|
||||||
data, err := json.Marshal("eMsg)
|
data, err := json.Marshal("eMsg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ZError(ctx, "json.Marshal", err)
|
log.ZError(ctx, "json.Marshal", err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user