From 772b57386f4dd6bca97e7b7508e9c286bb60502f Mon Sep 17 00:00:00 2001 From: enahum Date: Fri, 4 Nov 2016 13:05:32 -0300 Subject: PLT-4550 move webrtc to TE (#4440) * PLT-4550 move webrtc to TE * remove webrtc from makefile enterprise tests --- api/user.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'api/user.go') diff --git a/api/user.go b/api/user.go index e0507f399..b961aa609 100644 --- a/api/user.go +++ b/api/user.go @@ -750,9 +750,7 @@ func RevokeSessionById(c *Context, sessionId string) { } } - if webrtcInterface := einterfaces.GetWebrtcInterface(); webrtcInterface != nil { - webrtcInterface.RevokeToken(session.Id) - } + RevokeWebrtcToken(session.Id) } } @@ -776,9 +774,7 @@ func RevokeAllSession(c *Context, userId string) { } } - if webrtcInterface := einterfaces.GetWebrtcInterface(); webrtcInterface != nil { - webrtcInterface.RevokeToken(session.Id) - } + RevokeWebrtcToken(session.Id) } } } @@ -801,9 +797,7 @@ func RevokeAllSessionsNoContext(userId string) *model.AppError { } } - if webrtcInterface := einterfaces.GetWebrtcInterface(); webrtcInterface != nil { - webrtcInterface.RevokeToken(session.Id) - } + RevokeWebrtcToken(session.Id) } } return nil -- cgit v1.2.3-1-g7c22