Page MenuHomePhabricator

D12943.diff
No OneTemporary

D12943.diff

diff --git a/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js b/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js
--- a/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js
+++ b/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js
@@ -8,6 +8,7 @@
export const userActionsP2PMessageTypes = Object.freeze({
LOG_OUT_PRIMARY_DEVICE: 'LOG_OUT_PRIMARY_DEVICE',
LOG_OUT_SECONDARY_DEVICE: 'LOG_OUT_SECONDARY_DEVICE',
+ ACCOUNT_DELETION: 'ACCOUNT_DELETION',
DM_OPERATION: 'DM_OPERATION',
});
@@ -28,6 +29,14 @@
type: tString(userActionsP2PMessageTypes.LOG_OUT_SECONDARY_DEVICE),
});
+export type AccountDeletionP2PMessage = {
+ +type: 'ACCOUNT_DELETION',
+};
+export const accountDeletionP2PMessageValidator: TInterface<AccountDeletionP2PMessage> =
+ tShape<AccountDeletionP2PMessage>({
+ type: tString(userActionsP2PMessageTypes.ACCOUNT_DELETION),
+ });
+
export type DMOperationP2PMessage = {
+type: 'DM_OPERATION',
+op: DMOperation,
@@ -41,11 +50,13 @@
export type UserActionP2PMessage =
| PrimaryDeviceLogoutP2PMessage
| SecondaryDeviceLogoutP2PMessage
+ | AccountDeletionP2PMessage
| DMOperationP2PMessage;
export const userActionP2PMessageValidator: TUnion<UserActionP2PMessage> =
t.union([
primaryDeviceLogoutP2PMessageValidator,
secondaryDeviceLogoutP2PMessageValidator,
+ accountDeletionP2PMessageValidator,
dmOperationP2PMessageValidator,
]);

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 5:57 AM (19 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2583180
Default Alt Text
D12943.diff (1 KB)

Event Timeline