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

removing of recent hashtags added

This commit is contained in:
John Preston
2015-03-24 18:18:20 +03:00
parent 08e283bc91
commit b5d3580150
7 changed files with 81 additions and 11 deletions

View File

@@ -516,6 +516,7 @@ namespace {
FileKey _userSettingsKey = 0;
FileKey _recentHashtagsKey = 0;
bool _recentHashtagsWereRead = false;
typedef QPair<FileKey, qint32> FileDesc; // file, size
typedef QMap<StorageKey, FileDesc> StorageMap;
@@ -2255,6 +2256,9 @@ namespace Local {
}
void readRecentHashtags() {
if (_recentHashtagsWereRead) return;
_recentHashtagsWereRead = true;
if (!_recentHashtagsKey) return;
FileReadDescriptor hashtags;