2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

fixed map resave after update

This commit is contained in:
John Preston
2014-12-16 19:53:23 +03:00
parent 02657f4c6a
commit 677d94490f
2 changed files with 8 additions and 7 deletions

View File

@@ -635,10 +635,12 @@ namespace {
_storageMap = storageMap;
_storageFilesSize = storageFilesSize;
_locationsKey = locationsKey;
_mapChanged = false;
_oldMapVersion = mapData.version;
if (_oldMapVersion < AppVersion) {
_mapChanged = true;
_writeMap();
} else {
_mapChanged = false;
}
if (_locationsKey) {