()
| 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, |
no test coverage detected