parent
018b6f9d36
commit
0555fa13a2
@ -36,6 +36,8 @@
|
|||||||
|
|
||||||
<div class="page_wrap" ng-view></div>
|
<div class="page_wrap" ng-view></div>
|
||||||
|
|
||||||
|
<div id="notify_sound"></div>
|
||||||
|
|
||||||
<!-- build:js js/app.js -->
|
<!-- build:js js/app.js -->
|
||||||
<script type="text/javascript" src="vendor/console-polyfill/console-polyfill.js"></script>
|
<script type="text/javascript" src="vendor/console-polyfill/console-polyfill.js"></script>
|
||||||
<script type="text/javascript" src="vendor/jquery/jquery.min.js"></script>
|
<script type="text/javascript" src="vendor/jquery/jquery.min.js"></script>
|
||||||
|
@ -23,9 +23,10 @@ angular.module('myApp.controllers', [])
|
|||||||
ChangelogNotifyService.checkUpdate();
|
ChangelogNotifyService.checkUpdate();
|
||||||
})
|
})
|
||||||
|
|
||||||
.controller('AppLoginController', function ($scope, $location, $timeout, $modal, $modalStack, MtpApiManager, ErrorService, ChangelogNotifyService) {
|
.controller('AppLoginController', function ($scope, $rootScope, $location, $timeout, $modal, $modalStack, MtpApiManager, ErrorService, NotificationsManager, ChangelogNotifyService, IdleManager) {
|
||||||
|
|
||||||
$modalStack.dismissAll();
|
$modalStack.dismissAll();
|
||||||
|
IdleManager.start();
|
||||||
|
|
||||||
MtpApiManager.getUserID().then(function (id) {
|
MtpApiManager.getUserID().then(function (id) {
|
||||||
if (id) {
|
if (id) {
|
||||||
@ -184,6 +185,12 @@ angular.module('myApp.controllers', [])
|
|||||||
phone_number: $scope.credentials.phone_number
|
phone_number: $scope.credentials.phone_number
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
$scope.progress.enabled = true;
|
$scope.progress.enabled = true;
|
||||||
|
|
||||||
|
onContentLoaded(function () {
|
||||||
|
$scope.$broadcast('ui_height');
|
||||||
|
});
|
||||||
|
|
||||||
|
var authKeyStarted = tsNow();
|
||||||
MtpApiManager.invokeApi('auth.sendCode', {
|
MtpApiManager.invokeApi('auth.sendCode', {
|
||||||
phone_number: $scope.credentials.phone_full,
|
phone_number: $scope.credentials.phone_full,
|
||||||
sms_type: 5,
|
sms_type: 5,
|
||||||
@ -200,6 +207,10 @@ angular.module('myApp.controllers', [])
|
|||||||
|
|
||||||
callCheck();
|
callCheck();
|
||||||
|
|
||||||
|
onContentLoaded(function () {
|
||||||
|
$scope.$broadcast('ui_height');
|
||||||
|
});
|
||||||
|
|
||||||
}, function (error) {
|
}, function (error) {
|
||||||
$scope.progress.enabled = false;
|
$scope.progress.enabled = false;
|
||||||
console.log('sendCode error', error);
|
console.log('sendCode error', error);
|
||||||
@ -218,6 +229,14 @@ angular.module('myApp.controllers', [])
|
|||||||
error.handled = true;
|
error.handled = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
})['finally'](function () {
|
||||||
|
if ($rootScope.idle.isIDLE || tsNow() - authKeyStarted > 60000) {
|
||||||
|
NotificationsManager.notify({
|
||||||
|
title: 'Telegram',
|
||||||
|
message: 'Your authorization key was successfully generated! Open the app to log in.',
|
||||||
|
tag: 'auth_key'
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1066,7 +1085,7 @@ angular.module('myApp.controllers', [])
|
|||||||
}
|
}
|
||||||
onContentLoaded(function () {
|
onContentLoaded(function () {
|
||||||
$scope.$broadcast('messages_focus', $scope.curDialog.messageID || 0);
|
$scope.$broadcast('messages_focus', $scope.curDialog.messageID || 0);
|
||||||
})
|
});
|
||||||
$scope.$broadcast('ui_history_change');
|
$scope.$broadcast('ui_history_change');
|
||||||
|
|
||||||
AppMessagesManager.readHistory($scope.curDialog.inputPeer);
|
AppMessagesManager.readHistory($scope.curDialog.inputPeer);
|
||||||
|
@ -3608,6 +3608,9 @@ angular.module('myApp.services', [])
|
|||||||
if (Config.Navigator.ffos) {
|
if (Config.Navigator.ffos) {
|
||||||
data.image = 'https://raw.githubusercontent.com/zhukov/webogram/master/app/img/icons/icon60.png';
|
data.image = 'https://raw.githubusercontent.com/zhukov/webogram/master/app/img/icons/icon60.png';
|
||||||
}
|
}
|
||||||
|
else if (!data.image) {
|
||||||
|
data.image = 'img/icons/icon60.png';
|
||||||
|
}
|
||||||
|
|
||||||
notificationsCount++;
|
notificationsCount++;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<h4 class="modal_simple_header">Country</h4>
|
<h4 class="modal_simple_header">Country</h4>
|
||||||
|
|
||||||
<div class="countries_modal_search">
|
<div class="countries_modal_search">
|
||||||
<input class="form-control countries_modal_search_field" my-focused type="search" placeholder="Search" ng-model="search.query"/>
|
<input class="form-control countries_modal_search_field no_outline" my-focused type="search" placeholder="Search" ng-model="search.query"/>
|
||||||
<a class="countries_modal_search_clear" ng-click="search.query = ''" ng-show="search.query.length"></a>
|
<a class="countries_modal_search_clear" ng-click="search.query = ''" ng-show="search.query.length"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -277,5 +277,3 @@
|
|||||||
<div class="im_page_footer">
|
<div class="im_page_footer">
|
||||||
<a class="im_page_footer_brand" target="_blank" href="https://github.com/zhukov/webogram">Telegram beta</a> by izhukov & toberg
|
<a class="im_page_footer_brand" target="_blank" href="https://github.com/zhukov/webogram">Telegram beta</a> by izhukov & toberg
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="notify_sound"></div>
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<div class="modal-body mobile_modal_body">
|
<div class="modal-body mobile_modal_body">
|
||||||
|
|
||||||
<div class="countries_modal_search">
|
<div class="countries_modal_search">
|
||||||
<input class="form-control countries_modal_search_field" my-focused type="search" placeholder="Search" ng-model="search.query"/>
|
<input class="form-control countries_modal_search_field no_outline" my-focused type="search" placeholder="Search" ng-model="search.query"/>
|
||||||
<a class="countries_modal_search_clear" ng-click="search.query = ''" ng-show="search.query.length"></a>
|
<a class="countries_modal_search_clear" ng-click="search.query = ''" ng-show="search.query.length"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
|
|
||||||
# 28
|
# 29
|
||||||
|
|
||||||
NETWORK:
|
NETWORK:
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user