HomePhabricator
Diffusion Comm d5b14c070cef

Introduce notifications crypto module to CommCoreModule

Description

Introduce notifications crypto module to CommCoreModule

Summary:
This differential modifies CommCoreModule to work with notifications account that is persisted in SQLite. At the point of this diff notifications crypto
account exists in two places: in SQLite and in notifs storage. This isn't a mistake since only the one in SQLite will be used for cryptographic purposes since notifs
specific code only works with session. Next diff will remove notifs account from notifs storage.

Test Plan:

  1. Uninstall comm app from iOS/Android device.
  2. Apply this patch and build the app: https://gist.github.com/marcinwasowicz/47964be1bd6aeaabc5504b3fa440f340
  3. Tap each button that the patch introduces. Ensure that keys are logged to console.

Reviewers: michal, kamil, varun

Reviewed By: kamil, varun

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D11232

Details

Provenance
marcinAuthored on Feb 20 2024, 5:04 AM
Reviewer
kamil
Differential Revision
D11232: Introduce notifications crypto module to CommCoreModule
Parents
rCOMMd3a410416313: [web] Persist web sessions
Branches
Unknown
Tags
Unknown