IndexedDB migration: fix loading of data, fix object comparisons, add unmodified, etc

This commit is contained in:
2025-06-19 16:19:00 -06:00
parent 84f2d5c3a7
commit 4e215914a3
5 changed files with 224 additions and 169 deletions

View File

@@ -19,6 +19,10 @@ export interface Contact {
registered?: boolean; // cached value of the server setting
}
export type ContactWithJsonStrings = Contact & {
contactMethods?: string;
}
export const ContactSchema = {
contacts: "&did, name", // no need to key by other things
};

View File

@@ -64,6 +64,11 @@ export type Settings = {
webPushServer?: string; // Web Push server URL
};
// type of settings where the searchBoxes are JSON strings instead of objects
export type SettingsWithJsonStrings = Settings & {
searchBoxes: string;
};
export function checkIsAnyFeedFilterOn(settings: Settings): boolean {
return !!(settings?.filterFeedByNearby || settings?.filterFeedByVisible);
}