2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

fixed unread loading, fixed map rewrite in new version - 0.6.19

This commit is contained in:
John Preston
2014-12-13 01:32:06 +03:00
parent 21460d59fb
commit 3a73ece59d
8 changed files with 19 additions and 17 deletions

View File

@@ -679,7 +679,7 @@ void Application::startApp() {
QNetworkProxyFactory::setUseSystemConfiguration(true);
if (Local::oldMapVersion() < AppVersion) {
psRegisterCustomScheme();
if (Local::oldMapVersion() && AppVersion == FeaturesNotifyVersion) {
if (Local::oldMapVersion() && Local::oldMapVersion() <= FeaturesNotifyVersionFrom && AppVersion == FeaturesNotifyVersion) {
QString versionFeatures(QString::fromUtf8(FeaturesNotify));
if (!versionFeatures.isEmpty()) {
window->serviceNotification(versionFeatures);

View File

@@ -17,8 +17,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
*/
#pragma once
static const int32 AppVersion = 6018;
static const wchar_t *AppVersionStr = L"0.6.18";
static const int32 AppVersion = 6019;
static const wchar_t *AppVersionStr = L"0.6.19";
static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)";
static const wchar_t *AppName = L"Telegram Desktop";
@@ -26,7 +26,8 @@ static const wchar_t *AppName = L"Telegram Desktop";
static const wchar_t *AppId = L"{53F49750-6209-4FBF-9CA8-7A333C87D1ED}"; // used in updater.cpp and Setup.iss for Windows
static const wchar_t *AppFile = L"Telegram";
static const int32 FeaturesNotifyVersion = 6018;
static const int32 FeaturesNotifyVersion = 6019;
static const int32 FeaturesNotifyVersionFrom = 6017;
extern const char *FeaturesNotify;
#include "settings.h"

View File

@@ -2243,8 +2243,6 @@ void HistoryWidget::loadMessagesAround() {
}
void HistoryWidget::onListScroll() {
if (_scroll.isHidden()) return;
App::checkImageCacheSize();
if (histPreloading || !hist || ((_list->isHidden() || _scroll.isHidden() || !App::wnd()->windowHandle()->isVisible()) && hist->readyForWork())) {

View File

@@ -637,6 +637,9 @@ namespace {
_locationsKey = locationsKey;
_mapChanged = false;
_oldMapVersion = mapData.version;
if (_oldMapVersion < AppVersion) {
_writeMap();
}
if (_locationsKey) {
_readLocations();