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