Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33124213
D7912.1768493738.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7912.1768493738.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
Thu, Jan 15, 4:15 PM (19 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5937096
Default Alt Text
D7912.1768493738.diff (1 KB)
Attached To
Mode
D7912: [lib] add local id field to existing reports
Attached
Detach File
Event Timeline
Log In to Comment