MCPcopy Create free account
hub / github.com/CommE2E/comm / clearNotifsOfThread

Method clearNotifsOfThread

native/push/push-handler.react.js:456–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

454 }
455
456 clearNotifsOfThread() {
457 const { activeThread } = this.props;
458 if (!activeThread) {
459 return;
460 }
461 if (Platform.OS === 'ios') {
462 CommIOSNotifications.getDeliveredNotifications(notifications =>
463 PushHandler.clearDeliveredIOSNotificationsForThread(
464 activeThread,
465 notifications,
466 ),
467 );
468 } else if (Platform.OS === 'android') {
469 CommAndroidNotifications.removeAllActiveNotificationsForThread(
470 activeThread,
471 );
472 }
473 }
474
475 static clearDeliveredIOSNotificationsForThread(
476 threadID: string,

Callers 2

PushHandlerClass · 0.95
componentDidUpdateMethod · 0.95

Tested by

no test coverage detected