mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-09 20:49:34 +08:00
callback update
This commit is contained in:
parent
1f81c7ba2d
commit
51fa675e90
@ -62,7 +62,7 @@ func callbackOfflinePush(operationID string, userIDList []string, msg *commonPb.
|
|||||||
|
|
||||||
func callbackOnlinePush(operationID string, userIDList []string, msg *commonPb.MsgData) cbApi.CommonCallbackResp {
|
func callbackOnlinePush(operationID string, userIDList []string, msg *commonPb.MsgData) cbApi.CommonCallbackResp {
|
||||||
callbackResp := cbApi.CommonCallbackResp{OperationID: operationID}
|
callbackResp := cbApi.CommonCallbackResp{OperationID: operationID}
|
||||||
if !config.Config.Callback.CallbackOnlinePush.Enable {
|
if !config.Config.Callback.CallbackOnlinePush.Enable || utils.IsContain(msg.SendID, userIDList) {
|
||||||
return callbackResp
|
return callbackResp
|
||||||
}
|
}
|
||||||
req := cbApi.CallbackBeforePushReq{
|
req := cbApi.CallbackBeforePushReq{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user