HomePhabricator
Diffusion Comm 9518dca6bbf6

[keyserver] introduce sendRescindNotifs

Description

[keyserver] introduce sendRescindNotifs

Summary:
Introduce sendRescindNotifs. sendRescindNotifs gathers all the necessary info needed to build the rescindCondition and inputCountCondition from the rescind push info. The rescindCondition and inputCountCondition get passed to rescindPushNotifs, which handles rescinding push notifs in the notificaitons table of the db


Depends on D6829
Linear Task: ENG-2644

Test Plan:
I logged out fetchResult in rescind.js to see if I was fetching the correct notification to rescind based on the condition I built and provided in sendRescindNotifs. I also checked out deliveryResults in rescind.js to see if the rescind notifcation was successly being sent

Screenshot 2023-02-23 at 11.57.17 AM.png (460×3 px, 379 KB)

I also checked the notifications table in the db gui to see that a notification was sent from the message reaction and then rescinded by the subsequent unreaction

Screenshot 2023-02-23 at 11.57.29 AM.png (1×3 px, 1 MB)

Reviewers: ashoat, atul, tomek

Reviewed By: ashoat

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D6830

Details

Provenance
ginsuAuthored on Feb 21 2023, 10:28 PM
Reviewer
ashoat
Differential Revision
D6830: [keyserver] introduce sendRescindNotifs
Parents
rCOMM00510eaa214f: [keyserver] convert existing logic for building userPushInfoPromises to an…
Branches
Unknown
Tags
Unknown