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]>
This commit is contained in:
Raven Scott
2026-05-22 10:44:39 -04:00
co-authored by Cursor
parent 16334d2f23
commit ed4440ca45
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -11,6 +11,8 @@ P2P user appearance and UX preferences for Pearcord. Syncs across devices on `pe
| `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
+2 -1
View File
@@ -24,7 +24,8 @@ const DEFAULT_USER_PREFS = {
showSecondsInTimestamps: false,
blurSpoilers: true,
auditLogExportFilter: 'all',
composeDrafts: {}
composeDrafts: {},
companionLastGuildId: null
}
class PearcordSettings extends EventEmitter {