push message update

pull/354/head
Gordon 2 years ago
parent cb1487109a
commit 0bd2c00088

@ -259,7 +259,6 @@ func (r *RPCServer) SuperGroupBackgroundOnlinePush(_ context.Context, req *pbRel
RecvID: v, RecvID: v,
RecvPlatFormID: int32(platform), RecvPlatFormID: int32(platform),
} }
if !userConn.IsBackground {
resultCode := sendMsgBatchToUser(userConn, replyBytes.Bytes(), req, platform, v) resultCode := sendMsgBatchToUser(userConn, replyBytes.Bytes(), req, platform, v)
if resultCode == 0 && utils.IsContainInt(platform, r.pushTerminal) { if resultCode == 0 && utils.IsContainInt(platform, r.pushTerminal) {
tempT.OnlinePush = true tempT.OnlinePush = true
@ -268,10 +267,6 @@ func (r *RPCServer) SuperGroupBackgroundOnlinePush(_ context.Context, req *pbRel
temp.ResultCode = resultCode temp.ResultCode = resultCode
resp = append(resp, temp) resp = append(resp, temp)
} }
} else {
temp.ResultCode = -2
resp = append(resp, temp)
}
} }
} }

Loading…
Cancel
Save