mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-04 01:01:09 +08:00
feat: add recvID/groupID for msg modification callback (#351)
Signed-off-by: soasurs <soasurs@gmail.com>
This commit is contained in:
parent
0bd2c00088
commit
b67c244bbd
@ -147,6 +147,8 @@ func callbackMsgModify(msg *pbChat.SendMsgReq) cbApi.CommonCallbackResp {
|
|||||||
commonCallbackReq.CallbackCommand = constant.CallbackMsgModifyCommand
|
commonCallbackReq.CallbackCommand = constant.CallbackMsgModifyCommand
|
||||||
req := cbApi.CallbackMsgModifyCommandReq{
|
req := cbApi.CallbackMsgModifyCommandReq{
|
||||||
CommonCallbackReq: commonCallbackReq,
|
CommonCallbackReq: commonCallbackReq,
|
||||||
|
GroupID: msg.MsgData.GroupID,
|
||||||
|
RecvID: msg.MsgData.RecvID,
|
||||||
}
|
}
|
||||||
resp := &cbApi.CallbackMsgModifyCommandResp{CommonCallbackResp: &callbackResp}
|
resp := &cbApi.CallbackMsgModifyCommandResp{CommonCallbackResp: &callbackResp}
|
||||||
defer log.NewDebug(msg.OperationID, utils.GetSelfFuncName(), req, *resp)
|
defer log.NewDebug(msg.OperationID, utils.GetSelfFuncName(), req, *resp)
|
||||||
|
@ -51,6 +51,8 @@ type CallbackAfterConsumeGroupMsgResp struct {
|
|||||||
}
|
}
|
||||||
type CallbackMsgModifyCommandReq struct {
|
type CallbackMsgModifyCommandReq struct {
|
||||||
CommonCallbackReq
|
CommonCallbackReq
|
||||||
|
RecvID string `json:"recvID,omitempty"`
|
||||||
|
GroupID string `json:"groupID,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CallbackMsgModifyCommandResp struct {
|
type CallbackMsgModifyCommandResp struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user