minor tweaks

This commit is contained in:
Reinaldo Neto 2024-02-05 16:41:44 -03:00
parent e285bb1929
commit c832088d89
2 changed files with 3 additions and 3 deletions

View File

@ -905,6 +905,7 @@ export const removePushToken = (): Promise<boolean | void> => {
return Promise.resolve();
};
// RC 6.6.0
export const pushTest = () => sdk.post('push.test');
// RC 6.5.0

View File

@ -22,8 +22,9 @@ interface IPushTroubleshootViewProps {
const PushTroubleshootView = ({ navigation }: IPushTroubleshootViewProps): JSX.Element => {
const { colors } = useTheme();
const dispatch = useDispatch();
const [testPushNotificationsPermission] = usePermissions(['test-push-notifications']);
const { deviceNotificationEnabled, defaultPushGateway, pushGatewayEnabled, foreground, serverVersion } = useAppSelector(
state => ({
deviceNotificationEnabled: state.troubleshootingNotification.deviceNotificationEnabled,
@ -34,8 +35,6 @@ const PushTroubleshootView = ({ navigation }: IPushTroubleshootViewProps): JSX.E
})
);
const [testPushNotificationsPermission] = usePermissions(['test-push-notifications']);
useEffect(() => {
if (foreground) {
dispatch(requestTroubleshootingNotification());