Page MenuHomePhabricator

Update db ops reducer to process notiications creation data
ClosedPublic

Authored by marcin on Aug 7 2024, 9:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 14, 1:44 AM
Unknown Object (File)
Sun, Oct 13, 5:42 AM
Unknown Object (File)
Thu, Oct 10, 12:01 PM
Unknown Object (File)
Thu, Oct 3, 3:26 AM
Unknown Object (File)
Thu, Oct 3, 12:15 AM
Unknown Object (File)
Mon, Sep 30, 6:24 AM
Unknown Object (File)
Sat, Sep 28, 3:42 PM
Unknown Object (File)
Fri, Sep 27, 2:24 PM
Subscribers

Details

Summary

This differential implements the logic described in the Linear issue description: https://linear.app/comm/issue/ENG-8284/send-encrypted-notification-from-the-client-to-the-tb. This code lies foundation to automatically send e2ee notifs if relevant DMOperationSpec implements notificationsCreationData method

Test Plan

tested with the child diff

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Aug 7 2024, 9:48 AM
Harbormaster failed remote builds in B30982: Diff 43222!
marcin requested review of this revision.Aug 7 2024, 9:51 AM

Add db ops store action to schedule notifications creation and sending. Make db ops reducer aware of this new action

Update queueDBOps to queue notificationsCreationData

lib/types/db-ops-types.js
15–16 ↗(On Diff #43675)

this is not needed, dmOpID is part of DispatchMetadata

native/redux/redux-setup.js
317–328 ↗(On Diff #43675)

see me comment below how to simplify this

web/redux/redux-setup.js
543–563 ↗(On Diff #43675)

I think this can be simplified?

This revision is now accepted and ready to land.Aug 27 2024, 10:35 AM