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