Skip to content

Fix: always delete attachments upon message regen#1187

Merged
Jeffser merged 1 commit into
Jeffser:mainfrom
gsquarediv:delete-metadata
May 26, 2026
Merged

Fix: always delete attachments upon message regen#1187
Jeffser merged 1 commit into
Jeffser:mainfrom
gsquarediv:delete-metadata

Conversation

@gsquarediv
Copy link
Copy Markdown
Contributor

I've noticed for some time that metadata attachments don't get deleted when re-generating the same message multiple times. It seems the AttachmentContainer just loses track of them. I added an extra step to regenerate_message() to query the database and purge any attachments that the AttachmentContainer lost track of.

@Jeffser Jeffser merged commit 4b03b39 into Jeffser:main May 26, 2026
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.

2 participants