HomePhabricator
Diffusion Comm 06732ac6a7f2

[keyserver] Introduce `getOLMUtility(...)` and initialize OLM on `keyserver`…

Tags
None
Referenced Files
F404093: 8fe3ee.png
Feb 27 2023, 3:20 PM
File Not Attached
Subscribers
None

Description

[keyserver] Introduce getOLMUtility(...) and initialize OLM on keyserver start

Summary: Initialize OLM by calling await olm.init() on keyserver start and introduce getOLMUtility to potentially access cached OLMUtility... or instantiate a new one.

Test Plan:

  • Logged in a bunch of times and ensured things worked as expected.
  • Set breakpoint on cache hit:

8fe3ee.png (632×1 px, 147 KB)

Reviewers: ashoat, tomek

Reviewed By: ashoat

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

Details

Provenance
atulAuthored on Feb 27 2023, 3:19 PM
Reviewer
ashoat
Differential Revision
D6901: [keyserver] Introduce `getOLMUtility(...)` and initialize OLM on `keyserver` start
Parents
rCOMM4895ba2d1a3e: [keyserver] Introduce `OLMUtility` type
Branches
Unknown
Tags
Unknown