|
|
|
@ -461,10 +461,15 @@ 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 && msgs[0].Msg.ContentType != constant.MsgRevokeNotification {
|
|
|
|
|
if len(msgs) != 0 && msgs[0].Msg.ContentType == constant.MsgRevokeNotification {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
quoteMsg.QuoteMessage = nil
|
|
|
|
|
quoteMsg.QuoteMessage.ContentType = constant.MsgRevokeNotification
|
|
|
|
|
if len(msgs) > 0 {
|
|
|
|
|
quoteMsg.QuoteMessage.Content = msgs[0].Msg.Content
|
|
|
|
|
} else {
|
|
|
|
|
quoteMsg.QuoteMessage.Content = "{}"
|
|
|
|
|
}
|
|
|
|
|
data, err := json.Marshal("eMsg)
|
|
|
|
|
if err != nil {
|
|
|
|
|
log.ZError(ctx, "json.Marshal", err)
|
|
|
|
|