Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3269072
D12497.id41604.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
D12497.id41604.diff
View Options
diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -59,9 +59,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 { updateThreadStoreThreadInfos } from 'lib/shared/redux/client-db-utils.js';
import { legacyUpdateRolesAndPermissions } from 'lib/shared/redux/legacy-update-roles-and-permissions.js';
-import { updateRolesAndPermissions } from 'lib/shared/redux/update-roles-and-permissions.js';
import { inconsistencyResponsesToReports } from 'lib/shared/report-utils.js';
import {
getContainingThreadID,
@@ -1385,20 +1383,10 @@
ops: dbOperations,
};
},
- [77]: (state: AppState) => {
- const { newThreadStore, dbOperations } = updateThreadStoreThreadInfos(
- state.threadStore,
- updateRolesAndPermissions,
- );
-
- return {
- state: {
- ...state,
- threadStore: newThreadStore,
- },
- ops: dbOperations,
- };
- },
+ [77]: (state: AppState) => ({
+ state,
+ ops: [],
+ }),
};
// NOTE: renaming this object, and especially the `version` property
diff --git a/web/redux/persist.js b/web/redux/persist.js
--- a/web/redux/persist.js
+++ b/web/redux/persist.js
@@ -18,8 +18,6 @@
} from 'lib/ops/message-store-ops.js';
import type { ClientDBThreadStoreOperation } from 'lib/ops/thread-store-ops.js';
import { patchRawThreadInfoWithSpecialRole } from 'lib/permissions/special-roles.js';
-import { updateThreadStoreThreadInfos } from 'lib/shared/redux/client-db-utils.js';
-import { updateRolesAndPermissions } from 'lib/shared/redux/update-roles-and-permissions.js';
import { keyserverStoreTransform } from 'lib/shared/transforms/keyserver-store-transform.js';
import { messageStoreMessagesBlocklistTransform } from 'lib/shared/transforms/message-store-transform.js';
import { defaultAlertInfos } from 'lib/types/alert-types.js';
@@ -554,20 +552,10 @@
ops: dbOperations,
};
},
- [77]: (state: AppState) => {
- const { newThreadStore, dbOperations } = updateThreadStoreThreadInfos(
- state.threadStore,
- updateRolesAndPermissions,
- );
-
- return {
- state: {
- ...state,
- threadStore: newThreadStore,
- },
- ops: dbOperations,
- };
- },
+ [77]: (state: AppState) => ({
+ state,
+ ops: [],
+ }),
};
const persistConfig: PersistConfig = {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 3:41 AM (21 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2497908
Default Alt Text
D12497.id41604.diff (2 KB)
Attached To
Mode
D12497: [web/native] make redux persist migration 77 no-op
Attached
Detach File
Event Timeline
Log In to Comment