mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-01 23:32:54 +08:00
reaction message update
This commit is contained in:
parent
1ab7660f0d
commit
f0976c9ade
@ -300,6 +300,7 @@ func (rpc *rpcChat) AddMessageReactionExtensions(ctx context.Context, req *msg.A
|
|||||||
}
|
}
|
||||||
return &rResp, nil
|
return &rResp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//if !req.IsExternalExtensions {
|
//if !req.IsExternalExtensions {
|
||||||
// rResp.ErrCode = 200
|
// rResp.ErrCode = 200
|
||||||
// rResp.ErrMsg = "only extenalextensions message can be used"
|
// rResp.ErrMsg = "only extenalextensions message can be used"
|
||||||
@ -321,6 +322,7 @@ func (rpc *rpcChat) AddMessageReactionExtensions(ctx context.Context, req *msg.A
|
|||||||
}
|
}
|
||||||
rResp.MsgFirstModifyTime = callbackResp.MsgFirstModifyTime
|
rResp.MsgFirstModifyTime = callbackResp.MsgFirstModifyTime
|
||||||
rResp.Result = callbackResp.ResultReactionExtensionList
|
rResp.Result = callbackResp.ResultReactionExtensionList
|
||||||
|
rResp.IsReact = callbackResp.IsReact
|
||||||
ExtendMessageAddedNotification(req.OperationID, req.OpUserID, req.SourceID, req.SessionType, req, &rResp, isHistory, false)
|
ExtendMessageAddedNotification(req.OperationID, req.OpUserID, req.SourceID, req.SessionType, req, &rResp, isHistory, false)
|
||||||
return &rResp, nil
|
return &rResp, nil
|
||||||
}
|
}
|
||||||
|
@ -128,5 +128,6 @@ type CallbackAddMessageReactionExtReq struct {
|
|||||||
type CallbackAddMessageReactionExtResp struct {
|
type CallbackAddMessageReactionExtResp struct {
|
||||||
*CommonCallbackResp
|
*CommonCallbackResp
|
||||||
ResultReactionExtensionList []*msg.KeyValueResp `json:"resultReactionExtensionList"`
|
ResultReactionExtensionList []*msg.KeyValueResp `json:"resultReactionExtensionList"`
|
||||||
|
IsReact bool `json:"isReact"`
|
||||||
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
|
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user