Files
NapCatQQ/packages/napcat-common/src
手瓜一十雪 07d4d80ab7 Add isLocal flag to uriToLocalFile and use it
Expose an isLocal boolean from uriToLocalFile to indicate user-owned files vs temporary downloads/decodes, and update callers to avoid deleting or cleaning up user local files. Update OneBot file APIs to accept the isLocal hint (including createValidSendFileElement/createValidSendPicElement/createValidSendVideoElement) and adjust temp-file handling for videos: local files are copied into the NapCat temp dir with a random UUID filename to avoid polluting user directories, while temporary files get an added extension in-place. Also adjust deleteAfterSentFiles usage, image/video thumb handling, and numeric parsing fallbacks for element fileSize to be more robust. Minor imports (randomUUID) and related callsites were updated accordingly.
2026-03-12 15:36:44 +08:00
..
2025-11-13 15:39:42 +08:00
2025-11-13 15:39:42 +08:00
2025-11-13 18:31:55 +08:00
2025-11-13 15:39:42 +08:00
2025-11-15 13:36:33 +08:00
2025-11-13 15:39:42 +08:00
2025-11-13 15:39:42 +08:00
2025-11-13 15:39:42 +08:00
2025-11-13 15:39:42 +08:00
2025-11-13 15:39:42 +08:00