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