Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32365850
D14560.1765323484.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D14560.1765323484.diff
View Options
diff --git a/native/redux/persist-constants.js b/native/redux/persist-constants.js
--- a/native/redux/persist-constants.js
+++ b/native/redux/persist-constants.js
@@ -1,6 +1,6 @@
// @flow
const rootKey = 'root';
-const storeVersion = 88;
+const storeVersion = 89;
export { rootKey, storeVersion };
diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -74,6 +74,7 @@
import { messageStoreMessagesBlocklistTransform } from 'lib/shared/transforms/message-store-transform.js';
import {
DEPRECATED_unshimMessageStore,
+ unshimDMOperations,
unshimFunc,
} from 'lib/shared/unshim-utils.js';
import {
@@ -81,6 +82,7 @@
defaultAlertInfos,
alertTypes,
} from 'lib/types/alert-types.js';
+import { dmOperationTypes } from 'lib/types/dm-ops.js';
import { defaultEnabledApps } from 'lib/types/enabled-apps.js';
import { defaultCalendarQuery } from 'lib/types/entry-types.js';
import type { EntryStore } from 'lib/types/entry-types.js';
@@ -1575,6 +1577,12 @@
},
};
}: MigrationFunction<NavInfo, AppState>),
+ [89]: (async (state: AppState) =>
+ unshimDMOperations(
+ state,
+ dmOperationTypes.SEND_DELETE_MESSAGE,
+ handleReduxMigrationFailure,
+ ): MigrationFunction<NavInfo, AppState>),
});
// NOTE: renaming this object, and especially the `version` property
diff --git a/web/redux/persist-constants.js b/web/redux/persist-constants.js
--- a/web/redux/persist-constants.js
+++ b/web/redux/persist-constants.js
@@ -3,6 +3,6 @@
const rootKey = 'root';
const rootKeyPrefix = 'persist:';
const completeRootKey = `${rootKeyPrefix}${rootKey}`;
-const storeVersion = 88;
+const storeVersion = 89;
export { rootKey, rootKeyPrefix, completeRootKey, storeVersion };
diff --git a/web/redux/persist.js b/web/redux/persist.js
--- a/web/redux/persist.js
+++ b/web/redux/persist.js
@@ -27,7 +27,9 @@
import { deprecatedUpdateRolesAndPermissions } from 'lib/shared/redux/deprecated-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 { unshimDMOperations } from 'lib/shared/unshim-utils.js';
import { defaultAlertInfos } from 'lib/types/alert-types.js';
+import { dmOperationTypes } from 'lib/types/dm-ops.js';
import { defaultCalendarQuery } from 'lib/types/entry-types.js';
import type { KeyserverInfo } from 'lib/types/keyserver-types.js';
import { messageTypes } from 'lib/types/message-types-enum.js';
@@ -811,6 +813,12 @@
},
};
}: MigrationFunction<WebNavInfo, AppState>),
+ [89]: (async (state: AppState) =>
+ unshimDMOperations(
+ state,
+ dmOperationTypes.SEND_DELETE_MESSAGE,
+ handleReduxMigrationFailure,
+ ): MigrationFunction<WebNavInfo, AppState>),
};
const persistConfig: PersistConfig = {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 9, 11:38 PM (5 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5858779
Default Alt Text
D14560.1765323484.diff (2 KB)
Attached To
Mode
D14560: [native][web] Add migrations unshimming delete message operations
Attached
Detach File
Event Timeline
Log In to Comment