Skip to content

raw_json: stop storing fileReference #95

Closed

Description

@neoromantic

raw_json keeps each media message's fileReference. Telegram file references expire, and downloading a file needs a fresh one anyway: #22 fetches the message again before a download. Storing them only costs space (since #86 as base64).

Proposed: once the attachment metadata table from #22 exists, drop fileReference fields from raw_json on write, and from older rows with a background migration (#89). Keep everything else, including the stripped thumbnail, which is the only trace of a picture after the message is deleted on Telegram.

Done when new and migrated rows have no fileReference, a download still works (it re-fetches the message), and docs/database-schema.md lists what raw_json leaves out. Depends on #22, #86 and #89.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions