Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3362431
D11099.id38237.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11099.id38237.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
@@ -39,6 +39,7 @@
convertUserInfosToReplaceUserOps,
userStoreOpsHandlers,
} from 'lib/ops/user-store-ops.js';
+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 { createAsyncMigrate } from 'lib/shared/create-async-migrate.js';
@@ -102,6 +103,7 @@
import {
createUpdateDBOpsForMessageStoreMessages,
createUpdateDBOpsForMessageStoreThreads,
+ updateClientDBThreadStoreThreadInfos,
} from './client-db-utils.js';
import { defaultState } from './default-state.js';
import {
@@ -1125,6 +1127,12 @@
}
return newState;
},
+ [64]: (state: AppState) =>
+ updateClientDBThreadStoreThreadInfos(
+ state,
+ patchRawThreadInfosWithSpecialRole,
+ handleReduxMigrationFailure,
+ ),
};
// After migration 31, we'll no longer want to persist `messageStore.messages`
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 10:53 PM (20 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2576432
Default Alt Text
D11099.id38237.diff (1 KB)
Attached To
Mode
D11099: [native] Redux migration to patch in `specialRole` field
Attached
Detach File
Event Timeline
Log In to Comment