(threadID: string, message: string, title?: ?string)
| 775 | }; |
| 776 | |
| 777 | showInAppNotification(threadID: string, message: string, title?: ?string) { |
| 778 | if (threadID === this.props.activeThread) { |
| 779 | return; |
| 780 | } |
| 781 | this.setState({ |
| 782 | inAppNotifProps: { |
| 783 | customComponent: ( |
| 784 | <InAppNotif |
| 785 | title={title} |
| 786 | message={message} |
| 787 | activeTheme={this.props.activeTheme} |
| 788 | /> |
| 789 | ), |
| 790 | blurType: this.props.activeTheme === 'dark' ? 'xlight' : 'dark', |
| 791 | onPress: () => { |
| 792 | InAppNotification.hide(); |
| 793 | this.onPressNotificationForThread(threadID, false); |
| 794 | }, |
| 795 | }, |
| 796 | }); |
| 797 | } |
| 798 | |
| 799 | androidNotificationOpened = async (threadID: string) => { |
| 800 | this.onPushNotifBootsApp(); |
no test coverage detected