Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3534915
D12968.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D12968.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 1:40 PM (8 m, 55 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2706798
Default Alt Text
D12968.diff (2 KB)
Attached To
Mode
D12968: [lib] rename `invalidateTunnelbrokerDeviceToken` -> `invalidateTunnelbrokerDeviceTokenActionType`
Attached
Detach File
Event Timeline
Log In to Comment