feat(ui-flow): forward nsfwGateEnabled on update-guild-settings (v0.8.174)

Wire guild settings IPC to platform.updateGuildSettings so the desktop UI can
toggle the server-wide NSFW acknowledgement gate.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 22:48:41 -04:00
co-authored by Cursor
parent 62fecd0589
commit ac8083216e
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -105,6 +105,8 @@ await dispatchUiMessage(
- `pearcord-platform` — implementation target for every branch
- All feature modules — reached indirectly through platform
**v0.8.174:** `update-guild-settings` IPC forwards `nsfwGateEnabled` to `platform.updateGuildSettings`.
## Maintenance
When adding IPC in the Pear app, add the same `msg.type` branch here first (or simultaneously) so `dispatchUiMessage` remains the single routing table.
+5 -1
View File
@@ -525,7 +525,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
return true
}
if (t === 'update-guild-settings') {
await platform.updateGuildSettings({ name: msg.name, iconHash: msg.iconHash })
await platform.updateGuildSettings({
name: msg.name,
iconHash: msg.iconHash,
nsfwGateEnabled: msg.nsfwGateEnabled
})
pushState()
return true
}