Skip to content

Fix bugs with saving messages, and deleting messages and conversations#85

Merged
micahflee merged 2 commits into
mainfrom
deleting-conversations
Jul 19, 2026
Merged

Fix bugs with saving messages, and deleting messages and conversations#85
micahflee merged 2 commits into
mainfrom
deleting-conversations

Conversation

@micahflee

Copy link
Copy Markdown
Member

Fixes #79

I noticed that empty conversations sometimes weren't being deleted, and some messages that were old also weren't being deleted. This fixes those.

never stored locally and thus never deletable, leaving conversations that
couldn't be cleaned up.

- chat-indexer: save all real messages (isMessageView) instead of filtering
  on text; skip only placeholders
- getConversationMessageCount: count only real messageViews
- delete-messages: run empty-conversation cleanup from the DB even with no
  messages to delete; schedule the job whenever deleteChats is on
- FinishedModal: report conversations left
- update tests/fixtures accordingly
@micahflee
micahflee merged commit b59b2fb into main Jul 19, 2026
1 check passed
@micahflee
micahflee deleted the deleting-conversations branch July 19, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error with deleting empty chat conversations

1 participant