minor tweaks
This commit is contained in:
parent
e285bb1929
commit
c832088d89
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue