diff --git a/app/js/controllers.js b/app/js/controllers.js index a3d614c1..e8271814 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -22,6 +22,12 @@ angular.module('myApp.controllers', []) }) .controller('AppLoginController', function ($scope, $location, $timeout, MtpApiManager, ErrorService) { + MtpApiManager.getUserID().then(function (id) { + if (id) { + $location.url('/im'); + return; + } + }); var options = {dcID: 1}; $scope.credentials = {};