From b180bb46e3034d0ce75c9961a8ccea3eefbc855c Mon Sep 17 00:00:00 2001 From: enahum Date: Thu, 15 Sep 2016 09:35:44 -0300 Subject: PLT-3412 WebRTC Server side & System Console (#3706) * WebRTC Server side * WebRTC System Console * Consistency on variable names * Add turn and stun uri validation --- api/user.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'api/user.go') 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 -- cgit v1.2.3-1-g7c22