Something went wrong. Try again.
The Social Wire — a comprehensive client for creating on the atmosphere thesocialwire.app
Something went wrong. Try again.
123456789101112131415161718import type { OAuthSession } from "@atproto/oauth-client-browser";import type { PDSReadStateSync } from "./pdsReadStateSync";
// Every signed-in route imports these. The sync engine and its CBOR/outbox dependencies// load on first use rather than on every route.export const PDS_READ_HISTORY_NOTICE = "Read and unread history is public on your PDS. Pending changes remain on this device until synchronization completes.";export const pdsReadStateEnabled = () => true;export const PDS_READ_STATE_SYNC_EVENT = "socialwire:pds-read-state-sync";
export async function loadPDSReadStateSync(oauth: OAuthSession): Promise<PDSReadStateSync> { return (await import("./pdsReadStateSync")).pdsReadStateSync(oauth);}
/** A migrated account fails closed if status is unavailable: never silently fall back to legacy writes. */export async function usesPDSReadState(oauth: OAuthSession, force = false): Promise<boolean> { return (await import("./pdsReadStateSync")).usesPDSReadState(oauth, force);}