HomePhabricator
Diffusion Comm c879bd67d25a

Implement web notifs session createion with race condition handling

Description

Implement web notifs session createion with race condition handling

Summary: This differential enables notifs inbound session creation on web platforms with race condition handling

Test Plan:

  1. Apply this patch: https://gist.github.com/marcinwasowicz/c3da26ab164d1044aa3b2870f3434acd
  2. Log in on web and native
  3. Send message from native to web
  4. Copy the content of encrypted notification addressed to web client
  5. Paste the content in service-worker code and pass it to decryptWebNotification function. Log the result
  6. Expect that logged result is decrypted notification

Now repeat the test plan above but FIRST send message to native. Tunnelbroker can send pushes to native so session will be created on the native side and notification sent to web will be type MESSAGE_TYPE_MESSAGE (1).

Reviewers: kamil, tomek, inka

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
marcinAuthored on Jul 31 2024, 6:16 AM
Marcin Wąsowicz <marcinwasowicz@MacBook-Pro-Marcin.local>Committed on Aug 5 2024, 6:39 AM
Reviewer
kamil
Differential Revision
D12838: Implement web notifs session createion with race condition handling
Parents
rCOMM981c620dff97: Bump olm version
Branches
Unknown
Tags
Unknown