Page MenuHomePhabricator

D13966.diff
No OneTemporary

D13966.diff

diff --git a/keyserver/src/socket/tunnelbroker.js b/keyserver/src/socket/tunnelbroker.js
--- a/keyserver/src/socket/tunnelbroker.js
+++ b/keyserver/src/socket/tunnelbroker.js
@@ -247,7 +247,6 @@
);
const payload = await this.encodeQRAuthMessage({
type: qrCodeAuthMessageTypes.SECONDARY_DEVICE_REGISTRATION_SUCCESS,
- requestBackupKeys: false,
});
if (!payload) {
this.closeConnection();
diff --git a/lib/components/qr-auth-provider.react.js b/lib/components/qr-auth-provider.react.js
--- a/lib/components/qr-auth-provider.react.js
+++ b/lib/components/qr-auth-provider.react.js
@@ -117,7 +117,6 @@
void (async () => {
const message = await composeTunnelbrokerQRAuthMessage(qrData?.aesKey, {
type: qrCodeAuthMessageTypes.SECONDARY_DEVICE_REGISTRATION_SUCCESS,
- requestBackupKeys: true,
});
await sendMessageToDevice({
deviceID: primaryDeviceID,
diff --git a/lib/types/tunnelbroker/qr-code-auth-message-types.js b/lib/types/tunnelbroker/qr-code-auth-message-types.js
--- a/lib/types/tunnelbroker/qr-code-auth-message-types.js
+++ b/lib/types/tunnelbroker/qr-code-auth-message-types.js
@@ -41,12 +41,10 @@
export type SecondaryDeviceRegistrationSuccess = {
+type: 'SecondaryDeviceRegistrationSuccess',
- +requestBackupKeys: boolean,
};
export const secondaryDeviceRegistrationSuccessValidator: TInterface<SecondaryDeviceRegistrationSuccess> =
tShape<SecondaryDeviceRegistrationSuccess>({
type: tString(qrCodeAuthMessageTypes.SECONDARY_DEVICE_REGISTRATION_SUCCESS),
- requestBackupKeys: t.Boolean,
});
export type QRCodeAuthMessagePayload =
diff --git a/native/profile/secondary-device-qr-code-scanner.react.js b/native/profile/secondary-device-qr-code-scanner.react.js
--- a/native/profile/secondary-device-qr-code-scanner.react.js
+++ b/native/profile/secondary-device-qr-code-scanner.react.js
@@ -119,13 +119,6 @@
return;
}
- if (!payload.requestBackupKeys) {
- Alert.alert('Device added', 'Device registered successfully', [
- { text: 'OK', onPress: goBack },
- ]);
- return;
- }
-
Alert.alert('Device added', 'Device registered successfully', [
{ text: 'OK', onPress: goBack },
]);

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 7:20 AM (8 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2543370
Default Alt Text
D13966.diff (2 KB)

Event Timeline