feat(ui-flow): IPC for channel permission overwrites

Wire upsert-channel-overwrite and delete-channel-overwrite to platform APIs.
This commit is contained in:
Raven Scott
2026-05-22 02:56:26 -04:00
parent f4ecbab483
commit 3839dd6ac7
+19
View File
@@ -649,6 +649,25 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState()
return true
}
if (t === 'upsert-channel-overwrite') {
await platform.upsertChannelPermissionOverwrite(msg.channelId, {
targetType: msg.targetType,
targetId: msg.targetId,
allowView: msg.allowView,
denyView: msg.denyView
})
pushState()
return true
}
if (t === 'delete-channel-overwrite') {
await platform.deleteChannelPermissionOverwrite(
msg.channelId,
msg.targetType,
msg.targetId
)
pushState()
return true
}
if (t === 'set-slowmode') {
await platform.setChannelSlowmode(msg.channelId, msg.slowmodeSeconds)
pushState()