Page MenuHomePhabricator

[keyserver] Compose encrypted media messages
ClosedPublic

Authored by bartek on Mar 24 2023, 5:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 3:19 AM
Unknown Object (File)
Wed, Nov 6, 3:18 AM
Unknown Object (File)
Wed, Nov 6, 3:18 AM
Unknown Object (File)
Tue, Nov 5, 4:38 AM
Unknown Object (File)
Tue, Nov 5, 4:38 AM
Unknown Object (File)
Sun, Oct 27, 1:08 AM
Unknown Object (File)
Oct 7 2024, 8:55 PM
Unknown Object (File)
Oct 2 2024, 9:00 PM
Subscribers

Details

Summary

Part of ENG-3393

This diff implements composing encrypted messages on keyserver, basing of existence of the encryptionKey field in uploads table.

Depends on D7170
Depends on D7167

Test Plan

This code was actually used to test previous diffs. At this point, multimedia containing encryptionKey field in extras column of uploads table should be shimmed properly

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.

Fix typo in variable name

bartek published this revision for review.Mar 27 2023, 5:57 AM

The logic seems good to me

keyserver/src/fetchers/upload-fetchers.js
325 ↗(On Diff #24074)

I'd prefer

if (loop) {
    media.push({ ...video, loop});
} else {
    media.push(video);
}

but it's more of a personal preference to avoid a ternary here, so feel free to keep it as is

This revision is now accepted and ready to land.Mar 27 2023, 3:27 PM