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