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

Signed-off-by: soasurs <soasurs@gmail.com>
pull/455/head
soasurs 2 years ago committed by Xinwei Xiong(cubxxw-openim)
parent 4a7026622e
commit 2710db63a1

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

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

Loading…
Cancel
Save