refactor: migrate chats to relay worker cache

This commit is contained in:
2024-01-23 22:16:43 +00:00
parent c968fa43a6
commit e9d9bf34d8
11 changed files with 56 additions and 153 deletions

View File

@ -12,7 +12,7 @@ import {
UserMetadata,
} from "@snort/system";
import { Chats, GiftsCache } from "@/Cache";
import { GiftsCache } from "@/Cache";
import SnortApi from "@/External/SnortApi";
import { bech32ToHex, dedupeById, deleteRefCode, getCountry, sanitizeRelayUrl, unwrap } from "@/Utils";
import { Blasters } from "@/Utils/Const";
@ -68,7 +68,6 @@ export function updatePreferences(id: string, p: UserPreferences) {
export function logout(id: string) {
LoginStore.removeSession(id);
GiftsCache.clear();
Chats.clear();
deleteRefCode();
localStorage.clear();
}