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), + [89]: (async (state: AppState) => + unshimDMOperations( + state, + dmOperationTypes.SEND_DELETE_MESSAGE, + handleReduxMigrationFailure, + ): MigrationFunction), }); // 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), + [89]: (async (state: AppState) => + unshimDMOperations( + state, + dmOperationTypes.SEND_DELETE_MESSAGE, + handleReduxMigrationFailure, + ): MigrationFunction), }; const persistConfig: PersistConfig = {