Bump to 0.1.6
This commit is contained in:
parent
3759ffef85
commit
cb0201bfaf
@ -3563,6 +3563,14 @@ ce671b orange
|
||||
background-size: 160px 160px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.changelog_card_search {
|
||||
width: 133px;
|
||||
height: 133px;
|
||||
display: block;
|
||||
background: url(../img/changelog/search.png) no-repeat 0 0;
|
||||
background-size: 133px 133px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.changelog_version_title {
|
||||
color: #9d9479;
|
||||
|
BIN
app/img/changelog/search.png
Normal file
BIN
app/img/changelog/search.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
angular.module('myApp.controllers', [])
|
||||
|
||||
.controller('AppWelcomeController', function($scope, $location, MtpApiManager, ErrorService) {
|
||||
.controller('AppWelcomeController', function($scope, $location, MtpApiManager, ErrorService, ChangelogNotifyService) {
|
||||
MtpApiManager.getUserID().then(function (id) {
|
||||
if (id) {
|
||||
$location.url('/im');
|
||||
@ -19,9 +19,11 @@ angular.module('myApp.controllers', [])
|
||||
$scope.showWelcome = true;
|
||||
}
|
||||
});
|
||||
|
||||
ChangelogNotifyService.checkUpdate();
|
||||
})
|
||||
|
||||
.controller('AppLoginController', function ($scope, $location, $timeout, $modal, $modalStack, MtpApiManager, ErrorService) {
|
||||
.controller('AppLoginController', function ($scope, $location, $timeout, $modal, $modalStack, MtpApiManager, ErrorService, ChangelogNotifyService) {
|
||||
|
||||
$modalStack.dismissAll();
|
||||
|
||||
@ -208,6 +210,8 @@ angular.module('myApp.controllers', [])
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
ChangelogNotifyService.checkUpdate();
|
||||
})
|
||||
|
||||
.controller('AppIMController', function ($scope, $location, $routeParams, $modal, $rootScope, $modalStack, MtpApiManager, AppUsersManager, ContactsSelectService, ChangelogNotifyService, ErrorService) {
|
||||
@ -349,7 +353,16 @@ angular.module('myApp.controllers', [])
|
||||
}
|
||||
});
|
||||
|
||||
$scope.$watchCollection('search', loadDialogs);
|
||||
var prevMessages = false;
|
||||
$scope.$watchCollection('search', function () {
|
||||
if ($scope.search.messages != prevMessages) {
|
||||
prevMessages = $scope.search.messages;
|
||||
$scope.dialogs = [];
|
||||
loadDialogs(true);
|
||||
} else {
|
||||
loadDialogs();
|
||||
}
|
||||
});
|
||||
|
||||
$scope.importContact = function () {
|
||||
AppUsersManager.openImportContact().then(function (foundContact) {
|
||||
@ -368,14 +381,14 @@ angular.module('myApp.controllers', [])
|
||||
};
|
||||
|
||||
var searchTimeoutPromise;
|
||||
function getDialogs() {
|
||||
function getDialogs(force) {
|
||||
var searchMessages = $scope.search.messages && $scope.search.query.length > 0,
|
||||
curJump = ++jump,
|
||||
promise;
|
||||
|
||||
$timeout.cancel(searchTimeoutPromise);
|
||||
if (searchMessages) {
|
||||
searchTimeoutPromise = $timeout(angular.noop, 500);
|
||||
searchTimeoutPromise = force ? $q.when() : $timeout(angular.noop, 500);
|
||||
promise = searchTimeoutPromise.then(function () {
|
||||
return AppMessagesManager.getSearch({_: 'inputPeerEmpty'}, $scope.search.query, {_: 'inputMessagesFilterEmpty'}, maxID)
|
||||
});
|
||||
@ -444,14 +457,14 @@ angular.module('myApp.controllers', [])
|
||||
})
|
||||
};
|
||||
|
||||
function loadDialogs () {
|
||||
function loadDialogs (force) {
|
||||
offset = 0;
|
||||
maxID = 0;
|
||||
hasMore = false;
|
||||
peersInDialogs = {};
|
||||
contactsShown = false;
|
||||
|
||||
getDialogs().then(function (dialogsResult) {
|
||||
getDialogs(force).then(function (dialogsResult) {
|
||||
$scope.dialogs = [];
|
||||
$scope.contacts = [];
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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.1.5'
|
||||
version: '0.1.6'
|
||||
};
|
||||
|
||||
Config.Modes = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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
|
||||
@ -3694,7 +3694,9 @@ angular.module('myApp.services', [])
|
||||
function checkUpdate () {
|
||||
AppConfigManager.get('last_version').then(function (lastVersion) {
|
||||
if (lastVersion != Config.App.version) {
|
||||
showChangelog(lastVersion || '0');
|
||||
if (lastVersion) {
|
||||
showChangelog(lastVersion);
|
||||
}
|
||||
AppConfigManager.set({last_version: Config.App.version});
|
||||
}
|
||||
})
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Webogram v0.1.5 - messaging web application for MTProto
|
||||
* Webogram v0.1.6 - 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,6 +1,6 @@
|
||||
{
|
||||
"name": "Telegram UNOFFICIAL",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"short_name": "Webogram",
|
||||
"manifest_version": 2,
|
||||
"app": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Webogram",
|
||||
"description": "Webogram – UNOFFICIAL Telegram Web App.\nMore info & source code here: https://github.com/zhukov/webogram",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"type": "privileged",
|
||||
"launch_path": "/index.html",
|
||||
"developer": {
|
||||
|
@ -6,11 +6,11 @@
|
||||
|
||||
<div class="changelog_card_wrap" ng-switch="lastVersion === false">
|
||||
<div ng-switch-when="true">
|
||||
<div class="changelog_card"></div>
|
||||
<div class="changelog_card_search"></div>
|
||||
<h2 class="changelog_header">Recent updates in <strong>Telegram Web</strong></h2>
|
||||
</div>
|
||||
<div ng-switch-default>
|
||||
<div class="changelog_card"></div>
|
||||
<div class="changelog_card_search"></div>
|
||||
<h2 class="changelog_header"><strong>Telegram Web</strong> has been updated!</h2>
|
||||
</div>
|
||||
</div>
|
||||
@ -20,12 +20,25 @@
|
||||
<div class="modal_section changelog_version_wrap">
|
||||
<h3 class="modal_section_header changelog_version_title">
|
||||
<span class="pull-right">current version</span>
|
||||
Version 0.1.6
|
||||
</h3>
|
||||
<div class="modal_section_body changelog_version_changes">
|
||||
<ul class="list-unstyled changelog_version_changes_list">
|
||||
<li>Added messages search</li>
|
||||
<li>Improved performance of chats with lots of unread messages</li>
|
||||
<li>Bugfixes</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal_section changelog_version_wrap">
|
||||
<h3 class="modal_section_header changelog_version_title">
|
||||
Version 0.1.5
|
||||
</h3>
|
||||
<div class="modal_section_body changelog_version_changes">
|
||||
<ul class="list-unstyled changelog_version_changes_list">
|
||||
<li>Added registration</li>
|
||||
<li>Improved fresh user experience</li>
|
||||
<li>Improved experience for newly registered users</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -21,7 +21,7 @@
|
||||
</span>
|
||||
<span ng-switch-when="FILE_CLIPBOARD_PASTE">Are you sure to send file(s) from clipboard?</span>
|
||||
<span ng-switch-when="MESSAGE_DELETE">Are you sure you want to delete the message?</span>
|
||||
<span ng-switch-when="CONTACTS_IMPORT_PERFORM">We will now send selected contacts to Telegram servers in order to find your friends in Telegram.</span>
|
||||
<span ng-switch-when="CONTACTS_IMPORT_PERFORM">Telegram will now sync your contacts in order to find your friends.</span>
|
||||
<div ng-switch-when="LOGIN_PHONE_CORRECT">
|
||||
Is this phone number correct?
|
||||
<div class="confirm_phone_number"> <span ng-bind="country_code"></span> <span ng-bind="phone_number"></span> </div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "webogram",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"description": "Telegram UNOFFICIAL Web App",
|
||||
"main": "app/index.html",
|
||||
"single-instance": true,
|
||||
|
Loading…
Reference in New Issue
Block a user