From bd52715f18bf484c0dcb4ca7b40d33ba63983ae7 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 9 Jun 2016 20:42:00 +0300 Subject: [PATCH] Improved migrate to supergroup check --- app/js/controllers.js | 10 +++++----- app/partials/desktop/chat_modal.html | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 4f456aac..618dfd75 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -3410,13 +3410,13 @@ angular.module('myApp.controllers', ['myApp.i18n']) $scope.chatFull = AppChatsManager.wrapForFull($scope.chatID, chatFull); $scope.$broadcast('ui_height'); - $scope.canMigrate = $scope.chatFull && - $scope.chatFull.participants && - $scope.chatFull.participants.participants && - $scope.chatFull.participants.participants.length >= 200; + $scope.needMigrate = $scope.chatFull && + $scope.chatFull.participants && + $scope.chatFull.participants.participants && + $scope.chatFull.participants.participants.length >= 200; if (Config.Modes.test || Config.Modes.debug) { - $scope.canMigrate = true; + $scope.needMigrate = true; } NotificationsManager.savePeerSettings(-$scope.chatID, chatFull.notify_settings); diff --git a/app/partials/desktop/chat_modal.html b/app/partials/desktop/chat_modal.html index 35a31141..f4547fe9 100644 --- a/app/partials/desktop/chat_modal.html +++ b/app/partials/desktop/chat_modal.html @@ -78,7 +78,7 @@ -