ed4440ca457a73841f8f1f7018c4368717128ee5
Add companionLastGuildId to DEFAULT_USER_PREFS so the last active guild syncs over the user settings mesh for companion boot and desktop switches. 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 |
API
getPrefs()/setPrefs(patch, { gossip })joinMesh(swarm, { deviceId })simulateGossip(method, payload)— tests
Test
From apps/pearcord: npm run test:user-prefs
Languages
JavaScript
100%