Transfer CSAT to IndexedDB from service worker and implement call to identity to query for inbound keys
Summary:
This differential does two things
- 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.
- Implements HTTP call to identity service to get inbound keys for particular device.
Test Plan:
- 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.
- 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