|
|
|
|
@ -159,6 +159,7 @@ func (m *msgServer) sendMsgSingleChat(ctx context.Context, req *pbmsg.SendMsgReq
|
|
|
|
|
isSend := true
|
|
|
|
|
isNotification := msgprocessor.IsNotificationByMsg(req.MsgData)
|
|
|
|
|
if !isNotification {
|
|
|
|
|
log.ZInfo(ctx, "sendMsgSingleChat", "isNotification", isNotification, "msgdata", req.MsgData)
|
|
|
|
|
isSend, err = m.modifyMessageByUserMessageReceiveOpt(
|
|
|
|
|
ctx,
|
|
|
|
|
req.MsgData.RecvID,
|
|
|
|
|
@ -178,6 +179,8 @@ func (m *msgServer) sendMsgSingleChat(ctx context.Context, req *pbmsg.SendMsgReq
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
log.ZInfo(ctx, "sendMsgSingleChat", "isNotification", isNotification, "msgdata", req.MsgData)
|
|
|
|
|
|
|
|
|
|
if err := m.MsgDatabase.MsgToMQ(ctx, conversationutil.GenConversationUniqueKeyForSingle(req.MsgData.SendID, req.MsgData.RecvID), req.MsgData); err != nil {
|
|
|
|
|
prommetrics.SingleChatMsgProcessFailedCounter.Inc()
|
|
|
|
|
return nil, err
|
|
|
|
|
|