mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-01 20:01:35 +00:00
Two leftover paths still extended data that was already scheduled to expire sooner when forcing ephemeral retention: - forceConversationMessagesTemporary (and the by-tag message backfill) rewrote every gap-matched message to the forced deadline, overwriting carried-over `all`-mode messages whose own per-message TTL was already sooner. Use a $min aggregation update so each message keeps its earlier deadline while still being marked temporary and capped if later. - File uploads under ephemeral retention skipped the conversation lookup and got a fresh TTL, so a new attachment to a chat with a preserved earlier expiry could outlive the TTL-deleted conversation. Cap ephemeral file expiry to the minimum of the fresh window and the active parent conversation expiry, mirroring the message and shared-link paths. |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| .gitignore | ||
| babel.config.cjs | ||
| jest.config.mjs | ||
| jest.setup.cjs | ||
| package.json | ||
| tsconfig-paths-bootstrap.mjs | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsconfig.spec.json | ||
| tsdown.config.mjs | ||