Skip to content

Commit

Permalink
[native] Enable linked devices screen when using restore flow
Browse files Browse the repository at this point in the history
Summary:
Address [[ https://linear.app/comm/issue/ENG-9690/enable-device-list-management-screen-on-native | ENG-9690 ]].

We want it available when usingRestoreFlow is true (using new flows).

Test Plan: Set the flag to true - confirmed the menu option appeared

Reviewers: kamil, tomek

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D14146
  • Loading branch information
barthap committed Dec 16, 2024
1 parent 1affa7c commit d0002b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions native/profile/profile-screen.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ import {
useDispatchActionPromise,
type DispatchActionPromise,
} from 'lib/utils/redux-promise-utils.js';
import { usingCommServicesAccessToken } from 'lib/utils/services-utils.js';
import {
usingCommServicesAccessToken,
usingRestoreFlow,
} from 'lib/utils/services-utils.js';

import type { ProfileNavigationProp } from './profile.react.js';
import { deleteNativeCredentialsFor } from '../account/native-credentials.js';
Expand Down Expand Up @@ -255,7 +258,7 @@ class ProfileScreen extends React.PureComponent<Props> {
}

let linkedDevices;
if (__DEV__) {
if (usingRestoreFlow) {
linkedDevices = (
<ProfileRow content="Linked devices" onPress={this.onPressDevices} />
);
Expand Down

0 comments on commit d0002b3

Please sign in to comment.