File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -484,6 +484,8 @@ export const AgentMailBlock: BlockConfig = {
484484 updateMessageId,
485485 msgAddLabels,
486486 msgRemoveLabels,
487+ addLabels,
488+ removeLabels,
487489 draftInReplyTo,
488490 ...rest
489491 } = params
@@ -504,7 +506,7 @@ export const AgentMailBlock: BlockConfig = {
504506 rest . messageId = replyMessageId
505507 }
506508
507- if ( replyTo ) {
509+ if ( operation === 'reply_message' && replyTo ) {
508510 rest . to = replyTo
509511 } else if ( operation === 'reply_message' ) {
510512 rest . to = undefined
@@ -526,6 +528,14 @@ export const AgentMailBlock: BlockConfig = {
526528 rest . removeLabels = msgRemoveLabels
527529 }
528530
531+ if ( operation === 'update_thread' && addLabels ) {
532+ rest . addLabels = addLabels
533+ }
534+
535+ if ( operation === 'update_thread' && removeLabels ) {
536+ rest . removeLabels = removeLabels
537+ }
538+
529539 if ( draftInReplyTo ) {
530540 rest . inReplyTo = draftInReplyTo
531541 }
You can’t perform that action at this time.
0 commit comments