respect user settings

This commit is contained in:
2023-11-19 14:50:59 +07:00
parent 7117ed05a9
commit b7a18bea34
4 changed files with 28 additions and 8 deletions

View File

@@ -20,11 +20,13 @@ export class LumeStorage {
public db: Database;
public account: Account | null;
public platform: Platform | null;
public settings: { outbox: boolean; media: boolean; hashtag: boolean };
constructor(sqlite: Database, platform: Platform) {
this.db = sqlite;
this.account = null;
this.platform = platform;
this.settings = { outbox: false, media: true, hashtag: true };
}
public async secureSave(key: string, value: string) {