We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a397994 commit ec9aaeaCopy full SHA for ec9aaea
apps/sim/blocks/blocks/agentmail.ts
@@ -494,11 +494,11 @@ export const AgentMailBlock: BlockConfig = {
494
rest.inboxId = inboxIdParam
495
}
496
497
- if (permanent !== undefined) {
+ if (operation === 'delete_thread' && permanent !== undefined) {
498
rest.permanent = permanent === 'true'
499
500
501
- if (replyAll !== undefined) {
+ if (operation === 'reply_message' && replyAll !== undefined) {
502
rest.replyAll = replyAll === 'true'
503
504
@@ -536,7 +536,7 @@ export const AgentMailBlock: BlockConfig = {
536
rest.removeLabels = removeLabels
537
538
539
- if (draftInReplyTo) {
+ if (operation === 'create_draft' && draftInReplyTo) {
540
rest.inReplyTo = draftInReplyTo
541
542
0 commit comments