mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-27 20:30:40 +08:00
group chat log
This commit is contained in:
parent
a2e62c9fb5
commit
de2956ec3c
@ -237,6 +237,7 @@ func (rpc *rpcChat) SendMsg(_ context.Context, pb *pbChat.SendMsgReq) (*pbChat.S
|
|||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}(reply.MemberList)
|
}(reply.MemberList)
|
||||||
|
log.Debug(pb.OperationID, "GetGroupAllMember userID list", memberUserIDList)
|
||||||
var addUidList []string
|
var addUidList []string
|
||||||
switch pb.MsgData.ContentType {
|
switch pb.MsgData.ContentType {
|
||||||
case constant.MemberKickedNotification:
|
case constant.MemberKickedNotification:
|
||||||
@ -277,6 +278,7 @@ func (rpc *rpcChat) SendMsg(_ context.Context, pb *pbChat.SendMsgReq) (*pbChat.S
|
|||||||
groupPB.MsgData.RecvID = v
|
groupPB.MsgData.RecvID = v
|
||||||
isSend := modifyMessageByUserMessageReceiveOpt(v, groupID, constant.GroupChatType, &groupPB)
|
isSend := modifyMessageByUserMessageReceiveOpt(v, groupID, constant.GroupChatType, &groupPB)
|
||||||
if isSend {
|
if isSend {
|
||||||
|
log.Debug(groupPB.OperationID, "sendMsgToKafka, ", v, groupID)
|
||||||
msgToMQGroup.MsgData = groupPB.MsgData
|
msgToMQGroup.MsgData = groupPB.MsgData
|
||||||
err := rpc.sendMsgToKafka(&msgToMQGroup, v)
|
err := rpc.sendMsgToKafka(&msgToMQGroup, v)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -284,6 +286,8 @@ func (rpc *rpcChat) SendMsg(_ context.Context, pb *pbChat.SendMsgReq) (*pbChat.S
|
|||||||
} else {
|
} else {
|
||||||
sendTag = true
|
sendTag = true
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
log.Debug(groupPB.OperationID, "not sendMsgToKafka, ", v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wg.Done()
|
wg.Done()
|
||||||
@ -301,6 +305,7 @@ func (rpc *rpcChat) SendMsg(_ context.Context, pb *pbChat.SendMsgReq) (*pbChat.S
|
|||||||
groupPB.MsgData.RecvID = v
|
groupPB.MsgData.RecvID = v
|
||||||
isSend := modifyMessageByUserMessageReceiveOpt(v, groupID, constant.GroupChatType, &groupPB)
|
isSend := modifyMessageByUserMessageReceiveOpt(v, groupID, constant.GroupChatType, &groupPB)
|
||||||
if isSend {
|
if isSend {
|
||||||
|
log.Debug(groupPB.OperationID, "sendMsgToKafka, ", v, groupID)
|
||||||
msgToMQGroup.MsgData = groupPB.MsgData
|
msgToMQGroup.MsgData = groupPB.MsgData
|
||||||
err := rpc.sendMsgToKafka(&msgToMQGroup, v)
|
err := rpc.sendMsgToKafka(&msgToMQGroup, v)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -308,6 +313,8 @@ func (rpc *rpcChat) SendMsg(_ context.Context, pb *pbChat.SendMsgReq) (*pbChat.S
|
|||||||
} else {
|
} else {
|
||||||
sendTag = true
|
sendTag = true
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
log.Debug(groupPB.OperationID, "not sendMsgToKafka, ", v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wg.Done()
|
wg.Done()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user