Wire set-channel-nsfw IPC handler

Route NSFW toggle from channel context menu to platform.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 22:35:54 -04:00
co-authored by Cursor
parent c0e2347470
commit 62fecd0589
+5
View File
@@ -791,6 +791,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState()
return true
}
if (t === 'set-channel-nsfw') {
await platform.setChannelNsfw(msg.channelId, msg.nsfw)
pushState()
return true
}
if (t === 'reorder-categories') {
await platform.reorderCategories({ categoryIds: msg.categoryIds || [] })
pushState()