diff options
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 |