Page MenuHomePhabricator

D9186.id31073.diff
No OneTemporary

D9186.id31073.diff

diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -82,6 +82,7 @@
createUpdateDBOpsForMessageStoreMessages,
createUpdateDBOpsForMessageStoreThreads,
} from './client-db-utils.js';
+import { defaultState } from './default-state.js';
import { migrateThreadStoreForEditThreadPermissions } from './edit-thread-permission-migration.js';
import { persistMigrationForManagePinsThreadPermission } from './manage-pins-permission-migration.js';
import type { AppState } from './state-types.js';
@@ -641,6 +642,9 @@
return { ...state, cookie: null };
}
+ const inviteLinksStore =
+ state.inviteLinksStore ?? defaultState.inviteLinksStore;
+
return {
...state,
entryStore: convertEntryStoreToNewIDSchema(state.entryStore),
@@ -652,9 +656,7 @@
watchedThreadIDs: state.watchedThreadIDs.map(
id => `${ashoatKeyserverID}|${id}`,
),
- inviteLinksStore: convertInviteLinksStoreToNewIDSchema(
- state.inviteLinksStore,
- ),
+ inviteLinksStore: convertInviteLinksStoreToNewIDSchema(inviteLinksStore),
};
},
[44]: async state => {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 9, 5:19 AM (18 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2449150
Default Alt Text
D9186.id31073.diff (1 KB)

Event Timeline