Skip to content

Commit

Permalink
✨ Default to email event after takedown/label/reverse takedown
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit committed Dec 11, 2024
1 parent 25f5024 commit 202d56c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/actions/ModActionPanel/QuickAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,12 @@ function Form(
ev.target.reset()
// This state is not kept in the form and driven by state so we need to reset it manually after submission
// If previous event was takedown and not immediately moving to next subject, moderators are most like to send a follow up email so default to email event
const eventMayNeedEmail =
coreEvent.$type === MOD_EVENTS.TAKEDOWN ||
coreEvent.$type === MOD_EVENTS.REVERSE_TAKEDOWN ||
coreEvent.$type === MOD_EVENTS.LABEL
setModEventType(
coreEvent.$type === MOD_EVENTS.TAKEDOWN && !shouldMoveToNextSubject
eventMayNeedEmail && !shouldMoveToNextSubject
? MOD_EVENTS.EMAIL
: MOD_EVENTS.ACKNOWLEDGE,
)
Expand Down

0 comments on commit 202d56c

Please sign in to comment.