IndexedDB migration: fix loading of data, fix object comparisons, add unmodified, etc
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user