feat(prejoin/native): clear notifications when joining (#12361)

* feat(prejoin/native): clear notifications when joining
This commit is contained in:
Calinteodor 2022-10-13 17:05:21 +03:00 committed by GitHub
parent 4018e8875f
commit 4d84123c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ import {
navigateRoot
} from '../mobile/navigation/rootNavigationContainerRef';
import { screen } from '../mobile/navigation/routes';
import { clearNotifications } from '../notifications';
import { setFatalError } from '../overlay';
import { getDefaultURL } from './functions';
@ -138,6 +139,7 @@ export function appNavigate(uri?: string) {
if (room) {
dispatch(createDesiredLocalTracks());
dispatch(clearNotifications());
if (isPrejoinPageEnabled(getState())) {
navigateRoot(screen.preJoin);