mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-01 14:50:24 +00:00
parent
6f1c1fd070
commit
6fbd0d7deb
@ -2896,7 +2896,7 @@ base::flat_set<QString> CollectGoodNames() {
|
|||||||
_exportSettingsKey,
|
_exportSettingsKey,
|
||||||
_trustedBotsKey
|
_trustedBotsKey
|
||||||
};
|
};
|
||||||
auto result = base::flat_set<QString>{ "map0", "map1" };
|
auto result = base::flat_set<QString>{ "map0", "map1", "maps" };
|
||||||
const auto push = [&](FileKey key) {
|
const auto push = [&](FileKey key) {
|
||||||
if (!key) {
|
if (!key) {
|
||||||
return;
|
return;
|
||||||
@ -2905,6 +2905,8 @@ base::flat_set<QString> CollectGoodNames() {
|
|||||||
result.emplace(name);
|
result.emplace(name);
|
||||||
name[name.size() - 1] = '1';
|
name[name.size() - 1] = '1';
|
||||||
result.emplace(name);
|
result.emplace(name);
|
||||||
|
name[name.size() - 1] = 's';
|
||||||
|
result.emplace(name);
|
||||||
};
|
};
|
||||||
for (const auto &value : _draftsMap) {
|
for (const auto &value : _draftsMap) {
|
||||||
push(value);
|
push(value);
|
||||||
@ -5120,7 +5122,7 @@ void ClearManager::onStart() {
|
|||||||
if (!QDir(di.filePath()).removeRecursively()) result = false;
|
if (!QDir(di.filePath()).removeRecursively()) result = false;
|
||||||
} else {
|
} else {
|
||||||
QString path = di.filePath();
|
QString path = di.filePath();
|
||||||
if (!path.endsWith(qstr("map0")) && !path.endsWith(qstr("map1"))) {
|
if (!path.endsWith(qstr("map0")) && !path.endsWith(qstr("map1")) && !path.endsWith(qstr("maps"))) {
|
||||||
if (!QFile::remove(di.filePath())) result = false;
|
if (!QFile::remove(di.filePath())) result = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user