diff options
author | enahum <nahumhbl@gmail.com> | 2016-09-15 09:35:44 -0300 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-09-15 08:35:44 -0400 |
commit | b180bb46e3034d0ce75c9961a8ccea3eefbc855c (patch) | |
tree | 10cfc7affeca5b7c7634b73daf7817cc0c71cfd0 /api/user.go | |
parent | 3b4c9d7588e061b865dd5e35e785919962875fb9 (diff) | |
download | chat-b180bb46e3034d0ce75c9961a8ccea3eefbc855c.tar.gz chat-b180bb46e3034d0ce75c9961a8ccea3eefbc855c.tar.bz2 chat-b180bb46e3034d0ce75c9961a8ccea3eefbc855c.zip |
PLT-3412 WebRTC Server side & System Console (#3706)
* WebRTC Server side
* WebRTC System Console
* Consistency on variable names
* Add turn and stun uri validation
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/api/user.go b/api/user.go index 35cc3612e..a82fc5561 100644 --- a/api/user.go +++ b/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 |