summary refs log tree commit diff
path: root/webclient/app-controller.js
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-18 10:44:29 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-18 10:44:29 +0200
commit0b5674ccc5e636249f0bf746a81af814dc4c8700 (patch)
tree070929e13043f223e05280fb493b5305f5b54a72 /webclient/app-controller.js
parentAdded another button to upload and send an image. (diff)
downloadsynapse-0b5674ccc5e636249f0bf746a81af814dc4c8700.tar.xz
Do not start the event stream if the user is not logged in (=if he does not has an access token yet)
Add isUserLoggedIn to check this.
Diffstat (limited to 'webclient/app-controller.js')
-rw-r--r--webclient/app-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/app-controller.js b/webclient/app-controller.js
index ff4cb6e69e..96656e12c3 100644
--- a/webclient/app-controller.js
+++ b/webclient/app-controller.js
@@ -52,7 +52,7 @@ angular.module('MatrixWebClientController', ['matrixService'])
         }
     };
 
-    if (matrixService.config()) {
+    if (matrixService.isUserLoggedIn()) {
         eventStreamService.resume();
     }