HomePhabricator
Diffusion Comm 0ad865a9132d

Transfer CSAT to IndexedDB from service worker and implement call to identity…

Description

Transfer CSAT to IndexedDB from service worker and implement call to identity to query for inbound keys

Summary:
This differential does two things

  1. Adds CSAT to initial message that the app sends to service worker with olm wasm path. The service worker encrypts and persists it in IndexedDB.
  2. Implements HTTP call to identity service to get inbound keys for particular device.

Test Plan:

  1. Add logg statement to message handler in service worker that logs CSAT. Ensure that the same value is logged with each refresh and that after logging out and in new value starts being logged.
  2. Pick a random device id from staging identity database and pass it to getNotifsInboundKeysForDevice method. Log the result.

Reviewers: kamil, bartek

Reviewed By: bartek

Subscribers: ashoat

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