Page MenuHomePhabricator

[keyserver] Compose encrypted media messages
ClosedPublic

Authored by bartek on Mar 24 2023, 5:59 AM.
Tags
None
Referenced Files
F1670596: D7171.id24073.diff
Sat, Apr 27, 6:55 PM
F1670590: D7171.id24074.diff
Sat, Apr 27, 6:55 PM
F1670589: D7171.id24460.diff
Sat, Apr 27, 6:55 PM
F1670580: D7171.id.diff
Sat, Apr 27, 6:53 PM
F1670558: D7171.diff
Sat, Apr 27, 6:19 PM
Unknown Object (File)
Sun, Apr 21, 10:20 PM
Unknown Object (File)
Mon, Apr 15, 11:54 PM
Unknown Object (File)
Mon, Apr 15, 5:42 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
Branch
barthap/encrypted-media/js
Lint
No Lint Coverage
Unit
No Test Coverage

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