Browse Source

Minor bugfixes

master
Igor Zhukov 10 years ago
parent
commit
ec5bffbf6b
  1. 2
      app/js/controllers.js
  2. 2
      app/js/services.js

2
app/js/controllers.js

@ -73,7 +73,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -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);
}

2
app/js/services.js

@ -437,7 +437,7 @@ angular.module('myApp.services', ['myApp.i18n']) @@ -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 = {};

Loading…
Cancel
Save