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
Unknown Object (File)
Thu, Apr 25, 12:49 PM
Unknown Object (File)
Thu, Apr 25, 12:48 PM
Unknown Object (File)
Mon, Apr 1, 10:50 PM
Unknown Object (File)
Mon, Apr 1, 6:45 AM
Unknown Object (File)
Sun, Mar 31, 4:09 PM
Unknown Object (File)
Mar 30 2024, 12:55 AM
Unknown Object (File)
Mar 27 2024, 6:47 PM
Unknown Object (File)
Mar 26 2024, 10:11 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #38101)

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