Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3513811
D7912.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
D7912.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
@@ -41,6 +41,7 @@
convertRawThreadInfoToClientDBThreadInfo,
convertThreadStoreOperationsToClientDBOperations,
} from 'lib/utils/thread-ops-utils.js';
+import { getUUID } from 'lib/utils/uuid.js';
import { updateClientDBThreadStoreThreadInfos } from './client-db-utils.js';
import { migrateThreadStoreForEditThreadPermissions } from './edit-thread-permission-migration.js';
@@ -535,6 +536,16 @@
[39]: (state: AppState) => unshimClientDB(state, [messageTypes.EDIT_MESSAGE]),
[40]: state =>
updateClientDBThreadStoreThreadInfos(state, updateRolesAndPermissions),
+ [41]: (state: AppState) => {
+ const queuedReports = state.reportStore.queuedReports.map(report => ({
+ ...report,
+ id: getUUID(),
+ }));
+ return {
+ ...state,
+ reportStore: { ...state.reportStore, queuedReports },
+ };
+ },
};
// After migration 31, we'll no longer want to persist `messageStore.messages`
@@ -615,7 +626,7 @@
'storeLoaded',
],
debug: __DEV__,
- version: 40,
+ version: 41,
transforms: [messageStoreMessagesBlocklistTransform],
migrate: (createMigrate(migrations, { debug: __DEV__ }): any),
timeout: ((__DEV__ ? 0 : undefined): number | void),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 2:18 AM (19 h, 33 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2693182
Default Alt Text
D7912.diff (1 KB)
Attached To
Mode
D7912: [lib] add local id field to existing reports
Attached
Detach File
Event Timeline
Log In to Comment