Bump to 0.4.3
This commit is contained in:
parent
cc1a771237
commit
2dfd60c571
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
@ -791,22 +791,6 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
||||
}
|
||||
|
||||
return result;
|
||||
}, function (error) {
|
||||
if (error.code == 401) {
|
||||
MtpApiManager.logOut()['finally'](function () {
|
||||
if (location.protocol == 'http:' &&
|
||||
!Config.Modes.http &&
|
||||
Config.App.domains.indexOf(location.hostname) != -1) {
|
||||
location.href = location.href.replace(/^http:/, 'https:');
|
||||
} else {
|
||||
location.hash = '/login';
|
||||
AppRuntimeManager.reload();
|
||||
}
|
||||
});
|
||||
error.handled = true;
|
||||
}
|
||||
|
||||
return $q.reject();
|
||||
});
|
||||
};
|
||||
|
||||
@ -2626,6 +2610,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
||||
$scope.password = {_: 'account.noPassword'};
|
||||
updatePasswordState();
|
||||
var updatePasswordTimeout = false;
|
||||
var stopped = false;
|
||||
|
||||
$scope.changePassword = function (options) {
|
||||
options = options || {};
|
||||
@ -2660,12 +2645,17 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
||||
updatePasswordTimeout = false;
|
||||
PasswordManager.getState().then(function (result) {
|
||||
$scope.password = result;
|
||||
if (result._ == 'account.noPassword' && result.email_unconfirmed_pattern) {
|
||||
if (result._ == 'account.noPassword' && result.email_unconfirmed_pattern && !stopped) {
|
||||
updatePasswordTimeout = $timeout(updatePasswordState, 5000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$scope.$on('$destroy', function () {
|
||||
$timeout.cancel(updatePasswordTimeout);
|
||||
stopped = true;
|
||||
});
|
||||
|
||||
|
||||
function onPhotoSelected (photo) {
|
||||
if (!photo || !photo.type || photo.type.indexOf('image') !== 0) {
|
||||
@ -2997,6 +2987,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
||||
$scope.slice = {limit: 20, limitDelta: 20};
|
||||
|
||||
var updateSessionsTimeout = false;
|
||||
var stopped = false;
|
||||
|
||||
function updateSessions () {
|
||||
$timeout.cancel(updateSessionsTimeout);
|
||||
@ -3018,7 +3009,9 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
||||
}
|
||||
return sB.date_active - sA.date_active;
|
||||
});
|
||||
updateSessionsTimeout = $timeout(updateSessions, 5000);
|
||||
if (!stopped) {
|
||||
updateSessionsTimeout = $timeout(updateSessions, 5000);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@ -3042,6 +3035,11 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
||||
}
|
||||
});
|
||||
|
||||
$scope.$on('$destroy', function () {
|
||||
$timeout.cancel(updateSessionsTimeout);
|
||||
stopped = true;
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
.controller('PasswordUpdateModalController', function ($scope, $q, _, PasswordManager, MtpApiManager, ErrorService, $modalInstance) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
@ -21,7 +21,7 @@ Config = window.Config || {};
|
||||
Config.App = {
|
||||
id: 2496,
|
||||
hash: '8da85b0d5bfe62527e5b244c209159c3',
|
||||
version: '0.4.2',
|
||||
version: '0.4.3',
|
||||
domains: ['web.telegram.org', 'zhukov.github.io']
|
||||
};
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto'])
|
||||
|
||||
.factory('MtpApiManager', function (Storage, MtpAuthorizer, MtpNetworkerFactory, MtpSingleInstanceService, ErrorService, qSync, $q, TelegramMeWebService) {
|
||||
.factory('MtpApiManager', function (Storage, MtpAuthorizer, MtpNetworkerFactory, MtpSingleInstanceService, AppRuntimeManager, ErrorService, qSync, $q, TelegramMeWebService) {
|
||||
var cachedNetworkers = {},
|
||||
cachedUploadNetworkers = {},
|
||||
cachedExportPromise = {},
|
||||
@ -134,7 +134,20 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto'])
|
||||
error.stack = error.originalError && error.originalError.stack || error.stack || (new Error()).stack;
|
||||
setTimeout(function () {
|
||||
if (!error.handled) {
|
||||
ErrorService.show({error: error});
|
||||
if (error.code == 401) {
|
||||
mtpLogOut()['finally'](function () {
|
||||
if (location.protocol == 'http:' &&
|
||||
!Config.Modes.http &&
|
||||
Config.App.domains.indexOf(location.hostname) != -1) {
|
||||
location.href = location.href.replace(/^http:/, 'https:');
|
||||
} else {
|
||||
location.hash = '/login';
|
||||
AppRuntimeManager.reload();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
ErrorService.show({error: error});
|
||||
}
|
||||
error.handled = true;
|
||||
}
|
||||
}, 100);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.4.2 - messaging web application for MTProto
|
||||
* Webogram v0.4.3 - messaging web application for MTProto
|
||||
* https://github.com/zhukov/webogram
|
||||
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
||||
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
||||
|
@ -2799,11 +2799,8 @@ a.contacts_modal_contact:hover .md_modal_list_peer_description,
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.sessions_wrap {
|
||||
|
||||
}
|
||||
.sessions_scrollable_wrap {
|
||||
|
||||
.sessions_modal_sessions_list {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.session_active_date_online {
|
||||
color: #3a6d99;
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Telegram",
|
||||
"description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
|
||||
"version": "0.4.2",
|
||||
"version": "0.4.3",
|
||||
"short_name": "Telegram",
|
||||
"manifest_version": 2,
|
||||
"app": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Telegram",
|
||||
"description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
|
||||
"version": "0.4.2",
|
||||
"version": "0.4.3",
|
||||
"type": "privileged",
|
||||
"launch_path": "/index.html",
|
||||
"developer": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Telegram",
|
||||
"description": "Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
|
||||
"version": "0.4.2",
|
||||
"version": "0.4.3",
|
||||
"main": "app/index.html",
|
||||
"single-instance": true,
|
||||
"dom_storage_quota": 40,
|
||||
|
Loading…
x
Reference in New Issue
Block a user