Page MenuHomePhabricator

[web] Extract a function that determines where to store notifs session
ClosedPublic

Authored by tomek on Apr 12 2024, 11:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 1:10 PM
Unknown Object (File)
Fri, Apr 26, 11:20 PM
Unknown Object (File)
Mon, Apr 22, 9:12 AM
Unknown Object (File)
Sun, Apr 21, 8:13 PM
Unknown Object (File)
Sun, Apr 21, 6:14 AM
Unknown Object (File)
Sat, Apr 20, 12:10 PM
Unknown Object (File)
Apr 18 2024, 10:39 AM
Unknown Object (File)
Apr 18 2024, 7:34 AM
Subscribers

Details

Summary

This function will be also used in a function that reassigns the session.

https://linear.app/comm/issue/ENG-7688/introduce-a-function-that-moves-a-notifs-session

Test Plan

Tested in combination with the next diffs: open the web app, login, send a message from another client - a notif should be displayed (without this stack we can only see a notif with a warning message). Also, verify that the reassignment actually occurs by adding some console logs.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

marcin added inline comments.
web/shared-worker/worker/worker-crypto.js
338 ↗(On Diff #39081)

Nit: Perhaps getNotifsPersistenceKeys would be better. This function clearly deals with notifs specific data.

This revision is now accepted and ready to land.Apr 15 2024, 12:18 AM