Page MenuHomePhabricator

[lib] Store encrypted messages in Client DB
ClosedPublic

Authored by bartek on Mar 24 2023, 5:29 AM.
Tags
None
Referenced Files
F1671306: D7170.id24461.diff
Sat, Apr 27, 9:00 PM
F1671305: D7170.id24069.diff
Sat, Apr 27, 9:00 PM
F1671234: D7170.id.diff
Sat, Apr 27, 8:56 PM
F1671175: D7170.diff
Sat, Apr 27, 8:29 PM
Unknown Object (File)
Mon, Apr 22, 8:13 AM
Unknown Object (File)
Tue, Apr 16, 8:33 AM
Unknown Object (File)
Tue, Apr 16, 7:54 AM
Unknown Object (File)
Tue, Apr 16, 12:07 AM
Subscribers

Details

Summary

Part of ENG-3100

This diff adds support for storing encrypted media messages in client db.

I didn't modify the ClientDBMediaInfo type - it still contains only photo | video. Deduction if it is encrypted is based on existence of the encryption_key property. This approach works well, but I don't have strong opinion on it, I can refactor if requested.

Depends on D7169

Test Plan

Added unit tests. Also modified keyserver to compose encrypted media messaes and checked if they're properly saved and restored on native.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable