Page MenuHomePhabricator

D11669.id39302.diff
No OneTemporary

D11669.id39302.diff

diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -1219,6 +1219,36 @@
return newState;
},
+ [70]: (state: any) => {
+ const clientDBMessageInfos = commCoreModule.getAllMessagesSync();
+ const unsupportedMessageIDsToRemove = clientDBMessageInfos
+ .filter(
+ message =>
+ parseInt(message.type) === messageTypes.UNSUPPORTED &&
+ parseInt(message.future_type) === messageTypes.UPDATE_RELATIONSHIP,
+ )
+ .map(message => message.id);
+
+ const messageStoreOperations: $ReadOnlyArray<ClientDBMessageStoreOperation> =
+ [
+ {
+ type: 'remove',
+ payload: { ids: unsupportedMessageIDsToRemove },
+ },
+ ];
+
+ try {
+ commCoreModule.processMessageStoreOperationsSync(messageStoreOperations);
+ } catch (exception) {
+ console.log(exception);
+ if (isTaskCancelledError(exception)) {
+ return state;
+ }
+ return { ...state, cookie: null };
+ }
+
+ return state;
+ },
};
type PersistedReportStore = $Diff<
@@ -1240,7 +1270,7 @@
storage: AsyncStorage,
blacklist: persistBlacklist,
debug: __DEV__,
- version: 69,
+ version: 70,
transforms: [
messageStoreMessagesBlocklistTransform,
reportStoreTransform,

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 6:46 AM (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2578360
Default Alt Text
D11669.id39302.diff (1 KB)

Event Timeline