[FIX] In-app notification showing while in a Jitsi call (#2345)
* Hide in app notification when focused on JitsiMeetView * Hide notifications from different rooms Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
a584e68bbe
commit
052d91eae7
|
@ -14,7 +14,7 @@ const InAppNotification = memo(() => {
|
||||||
const state = Navigation.navigationRef.current?.getRootState();
|
const state = Navigation.navigationRef.current?.getRootState();
|
||||||
const route = getActiveRoute(state);
|
const route = getActiveRoute(state);
|
||||||
if (payload.rid) {
|
if (payload.rid) {
|
||||||
if (route?.name === 'RoomView' && route.params?.rid === payload.rid) {
|
if ((route?.name === 'RoomView' && route.params?.rid === payload.rid) || route?.name === 'JitsiMeetView') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Notifier.showNotification({
|
Notifier.showNotification({
|
||||||
|
|
Loading…
Reference in New Issue