diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-28 11:04:01 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-28 11:04:15 +0200 |
commit | 6ac298f2f1e10890fbaabff6f79be7769fdba4be (patch) | |
tree | 4c6d614039e16f92f02d07b56a56f73a7b3e1695 /webclient/app.js | |
parent | Shuffle files around in /docs (diff) | |
download | synapse-6ac298f2f1e10890fbaabff6f79be7769fdba4be.tar.xz |
Start the events stream once the app starts (if credentials are in cache) or once the user gets logged in
Diffstat (limited to 'webclient/app.js')
-rw-r--r-- | webclient/app.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/webclient/app.js b/webclient/app.js index 1d5503ebc0..2d6624ceec 100644 --- a/webclient/app.js +++ b/webclient/app.js @@ -79,13 +79,11 @@ matrixWebClient.config(['$routeProvider', '$provide', '$httpProvider', $httpProvider.interceptors.push('AccessTokenInterceptor'); }]); -matrixWebClient.run(['$location', 'matrixService', 'eventStreamService', function($location, matrixService, eventStreamService) { +matrixWebClient.run(['$location', 'matrixService', function($location, matrixService) { + // If user auth details are not in cache, go to the login page if (!matrixService.isUserLoggedIn()) { - eventStreamService.stop(); $location.path("login"); } - else { - // eventStreamService.resume(); - } + }]); |