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)
Sat, Dec 14, 4:50 PM
Unknown Object (File)
Sat, Dec 14, 4:50 PM
Unknown Object (File)
Sat, Dec 14, 4:50 PM
Unknown Object (File)
Sat, Dec 14, 4:49 PM
Unknown Object (File)
Sat, Dec 14, 4:42 PM
Unknown Object (File)
Sat, Dec 7, 8:51 AM
Unknown Object (File)
Thu, Dec 5, 8:31 PM
Unknown Object (File)
Thu, Dec 5, 8:31 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

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