This differential enables notifs inbound session creation on web platforms with race condition handling
Details
Details
- Apply this patch: https://gist.github.com/marcinwasowicz/c3da26ab164d1044aa3b2870f3434acd
- Log in on web and native
- Send message from native to web
- Copy the content of encrypted notification addressed to web client
- Paste the content in service-worker code and pass it to decryptWebNotification function. Log the result
- 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).
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- marcin/eng-8237
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
Improvement: use the same functions to fetch and persist olm data regardless of notification type (keyserver/peer device)
web/push-notif/notif-crypto-utils.js | ||
---|---|---|
463–468 | I tried and unfortunately flow can't conclude that senderDeviceID is not nullish if we early exit. |