Page MenuHomePhabricator

Introduce EncryptedNotifUtilsAPI and implement it on the keyserver
AcceptedPublic

Authored by marcin on Tue, Jun 11, 10:36 AM.
Tags
None
Referenced Files
F2109329: D12396.diff
Tue, Jun 25, 4:01 PM
Unknown Object (File)
Sat, Jun 22, 4:33 AM
Unknown Object (File)
Fri, Jun 21, 6:01 PM
Unknown Object (File)
Fri, Jun 21, 6:42 AM
Unknown Object (File)
Thu, Jun 20, 10:48 PM
Unknown Object (File)
Thu, Jun 20, 7:37 AM
Unknown Object (File)
Thu, Jun 20, 12:20 AM
Unknown Object (File)
Tue, Jun 18, 3:45 AM
Subscribers

Details

Reviewers
kamil
tomek
Summary

This differential introduces EncryptedNotifUtilsAPI. It serves the same purpose as olmAPI or sqliteAPI. During notification generation and encryption we will use the same utilities on all platforms but their implementations will be platform specific. This diff implements it for keyserver only for now. Future diffs will implement it on native and web as well.

Test Plan
  1. Flow
  2. Test all notifs for all platforms and large notifs as well.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

lib/types/notif-types.js
2 ↗(On Diff #41213)

Nit: you seem to have accidentally cut a line break here

I would consider registering config for keyserver to be able to use encryptedNotifUtilsAPI directly - passing it as a param trough all these functions makes it messy. In the future, we'll also want sqliteAPI to be implemented on keyserver, but this is something we can discuss in the Linear follow-up task because right now Config type is designed specifically for web & native.

This revision is now accepted and ready to land.Wed, Jun 19, 3:15 PM