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)
Mon, Apr 15, 11:54 PM
Unknown Object (File)
Mon, Apr 15, 5:42 PM
Unknown Object (File)
Mon, Apr 15, 1:56 AM
Unknown Object (File)
Fri, Apr 12, 5:30 PM
Unknown Object (File)
Tue, Apr 9, 10:39 PM
Unknown Object (File)
Thu, Mar 28, 7:15 AM
Unknown Object (File)
Thu, Mar 28, 7:15 AM
Unknown Object (File)
Thu, Mar 28, 7:15 AM
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