feat(ui-flow): IPC handlers for channel topic and description

Add set-channel-topic and set-channel-description dispatch to platform
setChannelTopic/setChannelDescription for the header edit modal.
This commit is contained in:
Raven Scott
2026-05-22 02:45:09 -04:00
parent 520927d24e
commit d48d194b32
+10
View File
@@ -621,6 +621,16 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState()
return true
}
if (t === 'set-channel-topic') {
await platform.setChannelTopic(msg.channelId, msg.topic)
pushState()
return true
}
if (t === 'set-channel-description') {
await platform.setChannelDescription(msg.channelId, msg.description)
pushState()
return true
}
if (t === 'set-slowmode') {
await platform.setChannelSlowmode(msg.channelId, msg.slowmodeSeconds)
pushState()