feat(ui-flow): server-folder-created IPC for undo toast (Phase 129)
After create-server-folder (with optional initialGuildId assign), emit server-folder-created so the desktop UI can show an undo toast that deletes the folder and unassigns the guild. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -1026,6 +1026,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
await platform.assignGuildToFolder(msg.initialGuildId, folder.id)
|
||||
}
|
||||
pushState()
|
||||
send({
|
||||
type: 'server-folder-created',
|
||||
folder,
|
||||
initialGuildId: msg.initialGuildId || null
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'delete-server-folder') {
|
||||
|
||||
Reference in New Issue
Block a user