PLT-3412 WebRTC Server side & System Console (#3706)
* WebRTC Server side * WebRTC System Console * Consistency on variable names * Add turn and stun uri validation
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
3b4c9d7588
Коммит
b180bb46e3
12
api/user.go
12
api/user.go
@@ -735,6 +735,10 @@ func RevokeSessionById(c *Context, sessionId string) {
|
||||
c.Err = result.Err
|
||||
}
|
||||
}
|
||||
|
||||
if webrtcInterface := einterfaces.GetWebrtcInterface(); webrtcInterface != nil {
|
||||
webrtcInterface.RevokeToken(session.Id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -757,6 +761,10 @@ func RevokeAllSession(c *Context, userId string) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if webrtcInterface := einterfaces.GetWebrtcInterface(); webrtcInterface != nil {
|
||||
webrtcInterface.RevokeToken(session.Id)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -778,6 +786,10 @@ func RevokeAllSessionsNoContext(userId string) *model.AppError {
|
||||
return result.Err
|
||||
}
|
||||
}
|
||||
|
||||
if webrtcInterface := einterfaces.GetWebrtcInterface(); webrtcInterface != nil {
|
||||
webrtcInterface.RevokeToken(session.Id)
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
||||
Ссылка в новой задаче
Block a user