mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
singal
This commit is contained in:
parent
7c90baf7bf
commit
52d8ab5389
@ -123,6 +123,8 @@ func (d *DataBases) HandleSignalInfo(msg *pbCommon.MsgData) error {
|
|||||||
case *pbRtc.SignalReq_InviteInGroup:
|
case *pbRtc.SignalReq_InviteInGroup:
|
||||||
inviteeUserIDList = signalInfo.InviteInGroup.Invitation.InviteeUserIDList
|
inviteeUserIDList = signalInfo.InviteInGroup.Invitation.InviteeUserIDList
|
||||||
isInviteSignal = true
|
isInviteSignal = true
|
||||||
|
case *pbRtc.SignalReq_HungUp, *pbRtc.SignalReq_Cancel, *pbRtc.SignalReq_Reject, *pbRtc.SignalReq_Accept:
|
||||||
|
return errors.New("signalInfo do not need offlinePush")
|
||||||
default:
|
default:
|
||||||
log2.NewDebug("", utils.GetSelfFuncName(), "req invalid type", string(msg.Content))
|
log2.NewDebug("", utils.GetSelfFuncName(), "req invalid type", string(msg.Content))
|
||||||
return nil
|
return nil
|
||||||
@ -175,7 +177,7 @@ func (d *DataBases) GetSignalInfoFromCacheByClientMsgID(clientMsgID string) (inv
|
|||||||
|
|
||||||
func (d *DataBases) GetAvailableSignalInvitationInfo(userID string) (invitationInfo *pbRtc.SignalInviteReq, err error) {
|
func (d *DataBases) GetAvailableSignalInvitationInfo(userID string) (invitationInfo *pbRtc.SignalInviteReq, err error) {
|
||||||
keyList := SignalListCache + userID
|
keyList := SignalListCache + userID
|
||||||
result := d.rdb.RPop(context.Background(), keyList)
|
result := d.rdb.LPop(context.Background(), keyList)
|
||||||
if err = result.Err(); err != nil {
|
if err = result.Err(); err != nil {
|
||||||
return nil, utils.Wrap(err, "GetAvailableSignalInvitationInfo failed")
|
return nil, utils.Wrap(err, "GetAvailableSignalInvitationInfo failed")
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -120,10 +120,11 @@ message InvitationInfo {
|
|||||||
string customData = 3;
|
string customData = 3;
|
||||||
string groupID = 4;
|
string groupID = 4;
|
||||||
string roomID = 5;
|
string roomID = 5;
|
||||||
int32 timeout = 6;
|
int32 initiateTime = 6;
|
||||||
string mediaType = 7;
|
int32 timeout = 7;
|
||||||
int32 platformID = 8;
|
string mediaType = 8;
|
||||||
int32 sessionType = 9;
|
int32 platformID = 9;
|
||||||
|
int32 sessionType = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -492,10 +492,11 @@ message InvitationInfo {
|
|||||||
string customData = 3;
|
string customData = 3;
|
||||||
string groupID = 4;
|
string groupID = 4;
|
||||||
string roomID = 5;
|
string roomID = 5;
|
||||||
int32 timeout = 6;
|
int32 initiateTime = 6;
|
||||||
string mediaType = 7;
|
int32 timeout = 7;
|
||||||
int32 platformID = 8;
|
string mediaType = 8;
|
||||||
int32 sessionType = 9;
|
int32 platformID = 9;
|
||||||
|
int32 sessionType = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ParticipantMetaData{
|
message ParticipantMetaData{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user