mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-18 10:29:49 +08:00
Merge remote-tracking branch 'origin/v2.3.0release' into v2.3.0release
This commit is contained in:
commit
93f3dd14a5
@ -96,6 +96,11 @@ func callbackOnlinePush(operationID string, userIDList []string, msg *commonPb.M
|
|||||||
return callbackResp
|
return callbackResp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if resp.ErrCode == constant.CallbackHandleSuccess && resp.ActionCode == constant.ActionAllow {
|
||||||
|
if resp.OfflinePushInfo != nil {
|
||||||
|
msg.OfflinePushInfo = resp.OfflinePushInfo
|
||||||
|
}
|
||||||
|
}
|
||||||
return callbackResp
|
return callbackResp
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,8 +138,13 @@ func callbackBeforeSuperGroupOnlinePush(operationID string, groupID string, msg
|
|||||||
return callbackResp
|
return callbackResp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if resp.ErrCode == constant.CallbackHandleSuccess && resp.ActionCode == constant.ActionAllow && len(resp.UserIDList) != 0 {
|
if resp.ErrCode == constant.CallbackHandleSuccess && resp.ActionCode == constant.ActionAllow {
|
||||||
*pushToUserList = resp.UserIDList
|
if len(resp.UserIDList) != 0 {
|
||||||
|
*pushToUserList = resp.UserIDList
|
||||||
|
}
|
||||||
|
if resp.OfflinePushInfo != nil {
|
||||||
|
msg.OfflinePushInfo = resp.OfflinePushInfo
|
||||||
|
}
|
||||||
}
|
}
|
||||||
log.NewDebug(operationID, utils.GetSelfFuncName(), pushToUserList, resp.UserIDList)
|
log.NewDebug(operationID, utils.GetSelfFuncName(), pushToUserList, resp.UserIDList)
|
||||||
return callbackResp
|
return callbackResp
|
||||||
|
@ -34,5 +34,6 @@ type CallbackBeforeSuperGroupOnlinePushReq struct {
|
|||||||
|
|
||||||
type CallbackBeforeSuperGroupOnlinePushResp struct {
|
type CallbackBeforeSuperGroupOnlinePushResp struct {
|
||||||
*CommonCallbackResp
|
*CommonCallbackResp
|
||||||
UserIDList []string `json:"userIDList"`
|
UserIDList []string `json:"userIDList"`
|
||||||
|
OfflinePushInfo *commonPb.OfflinePushInfo `json:"offlinePushInfo"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user