mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-24 15:34:20 +00:00
Extend huge local cache map crash annotations.
This commit is contained in:
parent
d4bd8862bd
commit
ce9445287c
@ -2205,10 +2205,6 @@ void _writeMap(WriteMapWhen when) {
|
||||
|
||||
EncryptedDescriptor mapData(mapSize);
|
||||
|
||||
if (mapSize > 30 * 1024 * 1024) {
|
||||
CrashReports::ClearAnnotation("MapSize");
|
||||
}
|
||||
|
||||
if (!_draftsMap.isEmpty()) {
|
||||
mapData.stream << quint32(lskDraft) << quint32(_draftsMap.size());
|
||||
for (DraftsMap::const_iterator i = _draftsMap.cbegin(), e = _draftsMap.cend(); i != e; ++i) {
|
||||
@ -2276,6 +2272,10 @@ void _writeMap(WriteMapWhen when) {
|
||||
map.writeEncrypted(mapData);
|
||||
|
||||
_mapChanged = false;
|
||||
|
||||
if (mapSize > 30 * 1024 * 1024) {
|
||||
CrashReports::ClearAnnotation("MapSize");
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Loading…
Reference in New Issue
Block a user