Page MenuHomePhabricator

Implement multiple keyserver unread count on web and desktop on top of IndexedDB
ClosedPublic

Authored by marcin on Mar 14 2024, 6:34 AM.
Tags
None
Referenced Files
F3489790: D11328.diff
Wed, Dec 18, 1:40 PM
Unknown Object (File)
Thu, Dec 5, 12:08 AM
Unknown Object (File)
Wed, Nov 20, 5:44 PM
Unknown Object (File)
Nov 16 2024, 5:49 AM
Unknown Object (File)
Nov 16 2024, 2:12 AM
Unknown Object (File)
Nov 6 2024, 3:35 PM
Unknown Object (File)
Oct 24 2024, 6:45 AM
Unknown Object (File)
Oct 24 2024, 1:43 AM
Subscribers

Details

Summary

This differential implements unread count handling from multiple keyservers

Test Plan
  1. Ensure that unread count is working properly.
  2. Toggle developer tools and ensure that there is relevant entry in IndexDB the corresponds to unread count for the keyserver that we logged in to.

Diff Detail

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

Event Timeline

  1. Fix potential issues related to desktop-web code version discrepancy.

Fix eslint by adding hook dependency

michal added inline comments.
web/push-notif/notif-crypto-utils.js
520–531

I don't like depending on ordering and indexes so alternatively we could do something like this. But both are fine.

This revision is now accepted and ready to land.Mar 18 2024, 7:00 AM
  1. Update queryNotifsUnreadCountStorage function not to rely on array ordering.
  2. Rebase before landing