HomePhabricator
Diffusion Comm b155617fd0d7

Remove relevant notification from notifications center when receiving rescind…

Description

Remove relevant notification from notifications center when receiving rescind in NSE

Summary:
This differential implements notifications removal from NotificationCenter when receiving rescind. The API used to remove a notification from NotificationCenter is the same as we use in CommIOSNotifications native module. We additionally do a trick with semaphore and dispatch
queue to ensure we don't exit too early from NSE before asynchronous UNUserNotificationCenter API fires.

Test Plan:
Remove condition codeVersion > 1000 from send.js and rescind.js in keyserver. Send some notification from one user. Then send some notifications from another user. Generate rescind for only one of those users! Ensure notifications for this one user a removed while for
the other stay in notification center.

Reviewers: bartek, atul, tomek, kamil, ashoat

Reviewed By: bartek, ashoat

Subscribers: ashoat

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

Details

Provenance
marcinAuthored on Mar 1 2023, 3:50 AM
Reviewer
bartek
Differential Revision
D6919: Remove relevant notification from notifications center when receiving rescind in NSE
Parents
rCOMM70905d6a8d4d: Silence rescinds in NSE
Branches
Unknown
Tags
Unknown