From ec5bffbf6bececa90238426a964733975dcfe7f0 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 6 Oct 2014 17:52:55 +0400 Subject: [PATCH] Minor bugfixes --- app/js/controllers.js | 2 +- app/js/services.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 1f40e9d5..972a9264 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -73,7 +73,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) return; } var wasCountry = $scope.credentials.phone_country; - MtpApiManager.invokeApi('help.getNearestDc', {}, {dcID: 4, createNetworker: true}).then(function (nearestDcResult) { + MtpApiManager.invokeApi('help.getNearestDc', {}, {dcID: 2, createNetworker: true}).then(function (nearestDcResult) { if (wasCountry == $scope.credentials.phone_country) { selectPhoneCountryByIso2(nearestDcResult.country); } diff --git a/app/js/services.js b/app/js/services.js index 3a46fcb4..c7fc6d87 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -437,7 +437,7 @@ angular.module('myApp.services', ['myApp.i18n']) }) -.service('AppChatsManager', function ($rootScope, $modal, MtpApiFileManager, MtpApiManager, AppUsersManager, RichTextProcessor) { +.service('AppChatsManager', function ($rootScope, $modal, _, MtpApiFileManager, MtpApiManager, AppUsersManager, RichTextProcessor) { var chats = {}, cachedPhotoLocations = {};