feat(ui-flow): unban-member and moderation-modal-open IPC for Phase 677

Wire unban member action and moderation modal open notifications for composer focus restore.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-02 22:56:48 -04:00
co-authored by Cursor
parent c766a22b8d
commit ac9fcfd4bf
+20
View File
@@ -2331,6 +2331,26 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState()
return true
}
if (t === 'unban-member') {
await platform.unbanMember({ userId: msg.userId })
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
pushState()
return true
}
if (t === 'moderation-modal-open') {
pushState()
send({
type: 'moderation-modal-opened',
kind: msg.kind || null,
userId: msg.userId || null
})
return true
}
if (t === 'set-channel-topic') {
await platform.setChannelTopic(msg.channelId, msg.topic)
pushState()