Page MenuHomePhabricator

Implement new endpoint on the keyserver to create notifs olm session on client demand
AcceptedPublic

Authored by marcin on Aug 15 2024, 10:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 14, 11:47 PM
Unknown Object (File)
Sat, Sep 14, 11:46 PM
Unknown Object (File)
Sat, Sep 14, 11:44 PM
Unknown Object (File)
Sun, Sep 1, 10:18 AM
Unknown Object (File)
Fri, Aug 30, 10:24 AM
Unknown Object (File)
Fri, Aug 30, 7:32 AM
Unknown Object (File)
Fri, Aug 30, 3:43 AM
Unknown Object (File)
Fri, Aug 30, 1:25 AM
Subscribers
None

Details

Reviewers
tomek
kamil
ashoat
Summary

This differential implements new endpoint on the keyserver that creates new notifs olm session on client demand.

Test Plan

Tested with final diff in the stack

Diff Detail

Repository
rCOMM Comm
Branch
marcin/eng-9025
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Worth considering potential race conditions with this endpoint and INITIAL_NOTIFICATIONS_ENCRYPTED_MESSAGE to avoid diverged session (keyserver and client session are different),

keyserver/src/endpoints.js
495

I think the validator should be named recreateNotifsOlmSessionInputValidator to match convention and placed in file with responder

lib/actions/keyserver-actions.js
11

I would put this in user-actions.js along with getOlmSessionInitializationData

15–18

I would create a read-only type RecreateNotifsOlmSessionInput and use it instead of spreading in two places

This revision is now accepted and ready to land.Mon, Aug 19, 4:28 AM