feat: add recvID/groupID for msg modification callback (#351)

Signed-off-by: soasurs <soasurs@gmail.com>
This commit is contained in:
soasurs 2023-03-20 15:27:43 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent 4a7026622e
commit 2710db63a1
2 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,8 @@ func callbackWordFilter(msg *pbChat.SendMsgReq) (canSend bool, err error) {
commonCallbackReq.CallbackCommand = constant.CallbackWordFilterCommand
req := cbApi.CallbackWordFilterReq{
CommonCallbackReq: commonCallbackReq,
GroupID: msg.MsgData.GroupID,
RecvID: msg.MsgData.RecvID,
}
resp := &cbApi.CallbackWordFilterResp{CommonCallbackResp: cbApi.CommonCallbackResp{}}
//utils.CopyStructFields(&req., msg.MsgData)

View File

@ -39,6 +39,8 @@ type CallbackAfterSendGroupMsgResp struct {
type CallbackWordFilterReq struct {
CommonCallbackReq
RecvID string `json:"recvID,omitempty"`
GroupID string `json:"groupID,omitempty"`
}
type CallbackWordFilterResp struct {