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