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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user