Page MenuHomePhabricator

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

Authored by tomek on Fri, Apr 12, 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)
Thu, Apr 18, 10:39 AM
Unknown Object (File)
Thu, Apr 18, 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
Lint Not Applicable
Unit
Tests Not Applicable

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.Mon, Apr 15, 12:18 AM