Skip to content

Messages: list attachments in messages_fetch and add messages_attachment_read - #244

Merged
mattt merged 2 commits into
mainfrom
mattt/messages-attachments
Sep 24, 2026
Merged

mattt merged 2 commits into
mainfrom
mattt/messages-attachments

Conversation

@mattt

@mattt mattt commented Sep 24, 2026

Copy link
Copy Markdown
Owner

This PR brings @patp's #214 onto the current main. The #214 branch still carried the original commit from #198, which was squash-merged, so it conflicted. This is its attachments commit cherry-picked onto main, with @patp as the author, plus a formatting pass for the lint check.

patp and others added 2 commits September 24, 2026 11:36
- attachments: true on messages_fetch returns each message's attachments
  ({@id, name, encodingFormat, contentSize, sticker}, hidden ones excluded)
  and keeps attachment-only messages (U+FFFC / at_<n>_<UUID> placeholders
  stripped from the text)
- messages_attachment_read {id, maxBytes}: base64 bytes of one attachment,
  only from under the granted Messages folder
- RawDatabase: read-only sqlite3 access for the attachment join
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