mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 11:06:43 +08:00
signal
This commit is contained in:
parent
b6634d26d1
commit
3451d22460
@ -63,10 +63,12 @@ func MsgToUser(pushMsg *pbPush.PushMsgReq) {
|
|||||||
successCount++
|
successCount++
|
||||||
if isOfflinePush && pushMsg.PushToUserID != pushMsg.MsgData.SendID {
|
if isOfflinePush && pushMsg.PushToUserID != pushMsg.MsgData.SendID {
|
||||||
// save invitation info for offline push
|
// save invitation info for offline push
|
||||||
|
if pushMsg.MsgData.ContentType == constant.SignalingNotification {
|
||||||
if err := db.DB.HandleSignalInfo(pushMsg.OperationID, pushMsg.MsgData); err != nil {
|
if err := db.DB.HandleSignalInfo(pushMsg.OperationID, pushMsg.MsgData); err != nil {
|
||||||
log.NewError(pushMsg.OperationID, utils.GetSelfFuncName(), err.Error(), pushMsg.MsgData)
|
log.NewError(pushMsg.OperationID, utils.GetSelfFuncName(), err.Error(), pushMsg.MsgData)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
}
|
||||||
for _, v := range wsResult {
|
for _, v := range wsResult {
|
||||||
if v.ResultCode == 0 {
|
if v.ResultCode == 0 {
|
||||||
if utils.IsContainInt32(v.RecvPlatFormID, pushTerminal) {
|
if utils.IsContainInt32(v.RecvPlatFormID, pushTerminal) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user