feat: add attachment ui

This commit is contained in:
LaZzyMan 2026-01-26 16:15:08 +08:00
parent 9a3e0bb72b
commit aba4abf6ad
6 changed files with 161 additions and 36 deletions

View file

@ -421,7 +421,7 @@ export async function cleanupOldClipboardImages(
) {
const filePath = path.join(tempDir, file);
const stats = await fs.stat(filePath);
if (stats.mtimeMs < oneHourAgo) {
if (stats.atimeMs < oneHourAgo) {
await fs.unlink(filePath);
}
}