(feat): big methanium/ui migration
(feat): update message state icons (qol): update todo (qol): formatted
This commit is contained in:
parent
5e79893137
commit
ace7973dff
24 changed files with 842 additions and 541 deletions
21
packages/cache/src/index.ts
vendored
21
packages/cache/src/index.ts
vendored
|
|
@ -175,12 +175,7 @@ export function createCache(accountId: string, options: CacheOptions = {}) {
|
|||
const userId = Number(key);
|
||||
return retained.has(userId)
|
||||
? []
|
||||
: [
|
||||
deleteDatabaseEntry(
|
||||
"cache",
|
||||
storedKey("conversations", key),
|
||||
),
|
||||
];
|
||||
: [deleteDatabaseEntry("cache", storedKey("conversations", key))];
|
||||
}),
|
||||
);
|
||||
},
|
||||
|
|
@ -210,12 +205,7 @@ export function createCache(accountId: string, options: CacheOptions = {}) {
|
|||
const userId = Number(key);
|
||||
return retained.has(userId)
|
||||
? []
|
||||
: [
|
||||
deleteDatabaseEntry(
|
||||
"cache",
|
||||
storedKey("conversations", key),
|
||||
),
|
||||
];
|
||||
: [deleteDatabaseEntry("cache", storedKey("conversations", key))];
|
||||
}),
|
||||
);
|
||||
},
|
||||
|
|
@ -241,12 +231,7 @@ export function createCache(accountId: string, options: CacheOptions = {}) {
|
|||
storedEntries.flatMap(([key]) =>
|
||||
retained.has(Number(key))
|
||||
? []
|
||||
: [
|
||||
deleteDatabaseEntry(
|
||||
"cache",
|
||||
storedKey("conversations", key),
|
||||
),
|
||||
],
|
||||
: [deleteDatabaseEntry("cache", storedKey("conversations", key))],
|
||||
),
|
||||
);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue