feat: Add too for reading original message history after compressing

This commit is contained in:
Petr Mironychev
2026-05-15 10:47:39 +02:00
parent 7704bffd88
commit cab2f0a55e
9 changed files with 255 additions and 1 deletions

View File

@@ -228,6 +228,8 @@ bool ChatCompressor::createCompressedChatFile(
summaryMessage["images"] = QJsonArray();
root["messages"] = QJsonArray{summaryMessage};
root["compressedFrom"] = sourcePath;
root["compressedAt"] = QDateTime::currentDateTime().toString(Qt::ISODate);
if (QFile::exists(destPath))
QFile::remove(destPath);