Page MenuHomePhabricator

[web/lib] add sequential decrypt to `olmAPI`
ClosedPublic

Authored by kamil on Apr 22 2024, 3:42 PM.
Tags
None
Referenced Files
F3341124: D11719.diff
Thu, Nov 21, 10:33 PM
Unknown Object (File)
Fri, Nov 8, 5:12 PM
Unknown Object (File)
Fri, Oct 25, 12:58 AM
Unknown Object (File)
Wed, Oct 23, 7:24 PM
Unknown Object (File)
Wed, Oct 23, 7:24 PM
Unknown Object (File)
Wed, Oct 23, 7:24 PM
Unknown Object (File)
Wed, Oct 23, 7:21 PM
Unknown Object (File)
Oct 17 2024, 5:28 PM
Subscribers

Details

Summary

Binding to olm method to sequential decrypt. Implementing different because this method will also be responsible for persisting message in SQLite (added later in the stack).

Depends on D11718

Test Plan

Created session between two web clients:

  1. Sending couple of encrypted messsages
  2. Sending messages with wrong order -> OLM_MESSAGE_OUT_OF_ORDER
  3. Sending the same message multiple times -> OLM_ALREADY_DECRYPTED_OR_KEYS_SKIPPED

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
web/shared-worker/worker/worker-crypto.js
470 ↗(On Diff #39370)

mistake while rebasing

web/shared-worker/worker/worker-crypto.js
459 ↗(On Diff #39370)

removed in D11728

kamil published this revision for review.Apr 23 2024, 6:38 AM
This revision is now accepted and ready to land.Apr 24 2024, 3:11 AM

decrypt -> decrypt_sequential