Page MenuHomePhabricator

D12497.diff
No OneTemporary

D12497.diff

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

Mime Type
text/plain
Expires
Sun, Nov 17, 1:09 AM (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2497908
Default Alt Text
D12497.diff (2 KB)

Event Timeline