HomePhabricator
Diffusion Comm 676e53b30a78

[keyserver] Add thumbhash to upload endpoints

Description

[keyserver] Add thumbhash to upload endpoints

Summary:
This adds possibility to store thumbhash on the keyserver. The thumbhash is saved to the extra column of the uploads table. Despite a deditated column being discussed, I decided to use the extras one for the sake of simplicity (avoid migration), and also because there are few other fields to consider when redesigning the uploads table schema (e.g. blob holder or encryption key which are even more important than the thumbhash).

Depends on D7802

Test Plan: Added the thumbhash property to the upload multimedia endpoint call in input-state-container. Checked with TablePlus that it's actually saved to the database.

Reviewers: atul, ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D7803

Details

Provenance
bartekAuthored on May 13 2023, 5:40 AM
Reviewer
ashoat
Differential Revision
D7803: [keyserver] Add thumbhash to upload endpoints
Parents
rCOMM201e05a269b8: [native] Avoid transition delay during upload
Branches
Unknown
Tags
Unknown