Add a timeout to avoid race conditions when opening the app from a push notification (#2015)
This commit is contained in:
parent
19fcb72315
commit
830132bc38
1 changed files with 3 additions and 1 deletions
|
|
@ -87,7 +87,9 @@ const onPushNotification = async (deviceNotification) => {
|
|||
} else if (userInteraction && !notification.localNotification) {
|
||||
EventEmitter.emit('close_channel_drawer');
|
||||
if (getState().views.root.hydrationComplete) {
|
||||
loadFromNotification(notification);
|
||||
setTimeout(() => {
|
||||
loadFromNotification(notification);
|
||||
}, 0);
|
||||
} else {
|
||||
const waitForHydration = () => {
|
||||
if (getState().views.root.hydrationComplete && !stopLoadingNotification) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue