Page MenuHomePhabricator

D9186.id31132.diff
No OneTemporary

D9186.id31132.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
Sun, Dec 22, 7:36 AM (6 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2690573
Default Alt Text
D9186.id31132.diff (1 KB)

Event Timeline