summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
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