| 70 | } |
| 71 | |
| 72 | QString ChatHistoryStore::autosaveFilePath(const QString &recentFilePath) const |
| 73 | { |
| 74 | if (!recentFilePath.isEmpty()) { |
| 75 | return recentFilePath; |
| 76 | } |
| 77 | |
| 78 | QString dir = historyDir(); |
| 79 | if (dir.isEmpty()) { |
| 80 | return QString(); |
| 81 | } |
| 82 | |
| 83 | return QDir(dir).filePath(suggestedFileName() + ".json"); |
| 84 | } |
| 85 | |
| 86 | QString ChatHistoryStore::autosaveFilePath( |
| 87 | const QString &recentFilePath, const QString &firstMessage, bool hasImageAttachments) const |
no test coverage detected