d0a01c974f6f4b27873ba9f803a1ede0e7064db7
Store thread channel ids pinned in the Active Threads panel for mesh sync via USER_PREFS_UPDATE. Co-authored-by: Cursor <[email protected]>
pearcord-settings
P2P user appearance and UX preferences for Pearcord. Syncs across devices on pearcord:userprefs:{userId} via USER_PREFS_UPDATE gossip.
Defaults
| Key | Values | Default |
|---|---|---|
theme |
dark, light, amoled |
dark |
density |
cozy, compact |
cozy |
showLinkPreviews |
boolean | true |
showSecondsInTimestamps |
boolean | false |
blurSpoilers |
boolean | true |
composeDrafts |
{ [channelId]: { text } } |
{} |
companionLastGuildId |
guild id or null |
null — last server opened (desktop + companion); P2P sync via USER_PREFS |
guildPresenceCache |
{ [guildId]: { online, at } } |
{} — companion rail presence; synced on settings mesh (v0.8.95) |
API
getPrefs()/setPrefs(patch, { gossip })joinMesh(swarm, { deviceId })simulateGossip(method, payload)— tests
Test
From apps/pearcord: npm run test:user-prefs
Languages
JavaScript
100%