Page MenuHomePhabricator

D12968.diff
No OneTemporary

D12968.diff

diff --git a/lib/actions/tunnelbroker-actions.js b/lib/actions/tunnelbroker-actions.js
--- a/lib/actions/tunnelbroker-actions.js
+++ b/lib/actions/tunnelbroker-actions.js
@@ -6,7 +6,7 @@
failed: 'SET_TB_DEVICE_TOKEN_FAILED',
});
-export const invalidateTunnelbrokerDeviceToken =
+export const invalidateTunnelbrokerDeviceTokenActionType =
'INVALIDATE_TUNNELBROKER_DEVICE_TOKEN';
export { setTBDeviceTokenActionTypes };
diff --git a/lib/reducers/tunnelbroker-device-token-reducer.js b/lib/reducers/tunnelbroker-device-token-reducer.js
--- a/lib/reducers/tunnelbroker-device-token-reducer.js
+++ b/lib/reducers/tunnelbroker-device-token-reducer.js
@@ -5,7 +5,7 @@
type SetDeviceTokenStartedPayload,
} from '../actions/device-actions.js';
import {
- invalidateTunnelbrokerDeviceToken,
+ invalidateTunnelbrokerDeviceTokenActionType,
setTBDeviceTokenActionTypes,
} from '../actions/tunnelbroker-actions.js';
import type { BaseAction } from '../types/redux-types.js';
@@ -27,7 +27,7 @@
} else if (action.type === setTBDeviceTokenActionTypes.success) {
const { deviceToken } = action.payload;
return { ...state, tunnelbrokerToken: deviceToken };
- } else if (action.type === invalidateTunnelbrokerDeviceToken) {
+ } else if (action.type === invalidateTunnelbrokerDeviceTokenActionType) {
const { deviceToken } = action.payload;
if (state.localToken !== deviceToken) {
return state;
diff --git a/lib/tunnelbroker/use-peer-to-peer-message-handler.js b/lib/tunnelbroker/use-peer-to-peer-message-handler.js
--- a/lib/tunnelbroker/use-peer-to-peer-message-handler.js
+++ b/lib/tunnelbroker/use-peer-to-peer-message-handler.js
@@ -5,7 +5,7 @@
import * as React from 'react';
import { removePeerUsersActionType } from '../actions/aux-user-actions.js';
-import { invalidateTunnelbrokerDeviceToken } from '../actions/tunnelbroker-actions.js';
+import { invalidateTunnelbrokerDeviceTokenActionType } from '../actions/tunnelbroker-actions.js';
import { logOutActionTypes, useLogOut } from '../actions/user-actions.js';
import {
useBroadcastDeviceListUpdates,
@@ -354,7 +354,7 @@
}
} else if (message.type === peerToPeerMessageTypes.BAD_DEVICE_TOKEN) {
dispatch({
- type: invalidateTunnelbrokerDeviceToken,
+ type: invalidateTunnelbrokerDeviceTokenActionType,
payload: {
deviceToken: message.invalidatedToken,
},

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 12:14 PM (11 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2706798
Default Alt Text
D12968.diff (2 KB)

Event Timeline