mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-10 16:23:44 +00:00
applyForcedRetention (message edit/feedback/share/tag writes) converts a chat to isTemporary: true, which visibleProjectConversationFilter excludes, but unlike saveConvo it never recomputed the owning project's cached stats. A pre-existing project chat converted this way left the project's conversationCount and lastConversationId pointing at a chat the workspace no longer shows. After the cascade, recompute the stats of every touched chat's project (the single conversation for applyForcedRetention, all tagged chats for applyForcedRetentionToTag), matching saveConvo's retention-visibility refresh. Scoped to conversations carrying a chatProjectId, so it is a no-op for chats outside any project. |
||
|---|---|---|
| .. | ||
| api | ||
| client | ||
| data-provider | ||
| data-schemas | ||