Page MenuHomePhabricator

[web] Move worker database globals to worker-database.js
ClosedPublic

Authored by michal on Mar 14 2024, 4:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 23, 1:50 AM
Unknown Object (File)
Tue, Apr 23, 1:50 AM
Unknown Object (File)
Tue, Apr 23, 1:49 AM
Unknown Object (File)
Tue, Apr 23, 1:47 AM
Unknown Object (File)
Apr 3 2024, 8:58 AM
Unknown Object (File)
Apr 1 2024, 6:26 PM
Unknown Object (File)
Mar 27 2024, 12:36 AM
Unknown Object (File)
Mar 21 2024, 1:06 PM
Subscribers

Details

Summary

Move the sqliteQueryExecutor and dbModule globals to another shared worker js module and expose functions to get/set them. This simplifies the identity client/ olm api as they can just use the global values. Additionaly I find it clearer in the shared worker code when the "set" operation is more explicit and not just an assignment.

Depends on D11236

Test Plan

Check that the database still works, data is persisted.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable