This commit is contained in:
Anurag Shivarathri 2022-09-07 04:29:06 +05:30 committed by GitHub
parent a819bfc820
commit 1fd475aaf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ import NativeNotifications from '@notifications';
import {queryServerName} from '@queries/app/servers';
import {getCurrentChannelId} from '@queries/servers/system';
import {getIsCRTEnabled, getThreadById} from '@queries/servers/thread';
import {showOverlay} from '@screens/navigation';
import {dismissOverlay, showOverlay} from '@screens/navigation';
import EphemeralStore from '@store/ephemeral_store';
import NavigationStore from '@store/navigation_store';
import {isTablet} from '@utils/helpers';
@ -126,6 +126,9 @@ class PushNotifications {
serverUrl,
};
// Dismiss the screen if it's already visible or else it blocks the navigation
await dismissOverlay(screen);
showOverlay(screen, passProps);
}
}