feat(app-notifications): Remove device notifications in the prejoin screen.

This commit is contained in:
tudordan7 2021-11-05 15:54:29 +02:00 committed by Saúl Ibarra Corretgé
parent 68eb0795eb
commit a7efbfb0f8
1 changed files with 8 additions and 7 deletions

View File

@ -292,13 +292,14 @@ function _checkAndNotifyForNewDevice(store, newDevices, oldDevices) {
break;
}
}
dispatch(showNotification({
description,
titleKey,
customActionNameKey: 'notify.newDeviceAction',
customActionHandler: _useDevice.bind(undefined, store, devicesArray)
}));
if (!isPrejoinPageVisible(store.getState())) {
dispatch(showNotification({
description,
titleKey,
customActionNameKey: 'notify.newDeviceAction',
customActionHandler: _useDevice.bind(undefined, store, devicesArray)
}));
}
});
}