Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3507411
D12390.id.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
D12390.id.diff
View Options
diff --git a/native/redux/legacy-update-roles-and-permissions.js b/lib/shared/redux/legacy-update-roles-and-permissions.js
rename from native/redux/legacy-update-roles-and-permissions.js
rename to lib/shared/redux/legacy-update-roles-and-permissions.js
--- a/native/redux/legacy-update-roles-and-permissions.js
+++ b/lib/shared/redux/legacy-update-roles-and-permissions.js
@@ -5,16 +5,16 @@
getRolePermissionBlobs,
makePermissionsBlob,
makePermissionsForChildrenBlob,
-} from 'lib/permissions/thread-permissions.js';
-import { assertAllThreadInfosAreLegacy } from 'lib/shared/thread-utils.js';
-import type { ThreadPermissionsBlob } from 'lib/types/thread-permission-types.js';
+} from '../../permissions/thread-permissions.js';
+import { assertAllThreadInfosAreLegacy } from '../../shared/thread-utils.js';
+import type { ThreadPermissionsBlob } from '../../types/thread-permission-types.js';
import type {
LegacyRawThreadInfo,
ThreadStoreThreadInfos,
LegacyMemberInfo,
MixedRawThreadInfos,
-} from 'lib/types/thread-types.js';
-import { values } from 'lib/utils/objects.js';
+} from '../../types/thread-types.js';
+import { values } from '../../utils/objects.js';
type ThreadTraversalNode = {
+threadID: string,
diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -57,6 +57,7 @@
import { patchRawThreadInfosWithSpecialRole } from 'lib/permissions/special-roles.js';
import { filterThreadIDsInFilterList } from 'lib/reducers/calendar-filters-reducer.js';
import { highestLocalIDSelector } from 'lib/selectors/local-id-selectors.js';
+import { legacyUpdateRolesAndPermissions } from 'lib/shared/redux/legacy-update-roles-and-permissions.js';
import { inconsistencyResponsesToReports } from 'lib/shared/report-utils.js';
import {
getContainingThreadID,
@@ -131,7 +132,6 @@
handleReduxMigrationFailure,
persistBlacklist,
} from './handle-redux-migration-failure.js';
-import { legacyUpdateRolesAndPermissions } from './legacy-update-roles-and-permissions.js';
import { persistMigrationForManagePinsThreadPermission } from './manage-pins-permission-migration.js';
import { persistMigrationToRemoveSelectRolePermissions } from './remove-select-role-permissions.js';
import type { AppState } from './state-types.js';
diff --git a/native/redux/update-roles-and-permissions.test.js b/native/redux/update-roles-and-permissions.test.js
--- a/native/redux/update-roles-and-permissions.test.js
+++ b/native/redux/update-roles-and-permissions.test.js
@@ -1,6 +1,7 @@
// @flow
-import { legacyUpdateRolesAndPermissions } from './legacy-update-roles-and-permissions.js';
+import { legacyUpdateRolesAndPermissions } from 'lib/shared/redux/legacy-update-roles-and-permissions.js';
+
import {
threadStoreThreads,
threadStoreThreadsWithEmptyRolePermissions,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 8:44 PM (2 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2689020
Default Alt Text
D12390.id.diff (2 KB)
Attached To
Mode
D12390: [lib/native] lift legacyUpdateRolesAndPermissions into lib
Attached
Detach File
Event Timeline
Log In to Comment