summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-11-04 13:05:32 -0300
committerHarrison Healey <harrisonmhealey@gmail.com>2016-11-04 12:05:32 -0400
commit772b57386f4dd6bca97e7b7508e9c286bb60502f (patch)
treef99074ba97d40abb12c56a199ce9d6262a9ae442 /api/user.go
parent6289c726862c9d1356fb8d78694d1ef2d7527756 (diff)
downloadchat-772b57386f4dd6bca97e7b7508e9c286bb60502f.tar.gz
chat-772b57386f4dd6bca97e7b7508e9c286bb60502f.tar.bz2
chat-772b57386f4dd6bca97e7b7508e9c286bb60502f.zip
PLT-4550 move webrtc to TE (#4440)
* PLT-4550 move webrtc to TE * remove webrtc from makefile enterprise tests
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go12
1 files changed, 3 insertions, 9 deletions
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