Raven ScottandCursor ed4440ca45 feat(settings): companionLastGuildId pref for guild rail restore (v0.8.94)
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]>
2026-05-22 10:44:39 -04:00

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

S
Description
Pearcord module: pearcord-settings — P2P user appearance prefs sync
Readme
260 KiB
Languages
JavaScript 100%