Send event to JS only if React initialized (#4668) (#4674)

(cherry picked from commit 66a8f8a55f)

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
This commit is contained in:
Mattermost Build
2020-08-15 11:52:34 -04:00
committed by GitHub
parent 0112b96366
commit 4d027f4e6e

View File

@@ -172,7 +172,9 @@ public class CustomPushNotification extends PushNotification {
break;
}
notifyReceivedToJS();
if (mAppLifecycleFacade.isReactInitialized()) {
notifyReceivedToJS();
}
}
@Override