Skip to content

fix: allow optional users and channels when creating automations#23

Open
Khizarshah01 wants to merge 1 commit intoRocketChat:mainfrom
Khizarshah01:fix-automation-create-default-values
Open

fix: allow optional users and channels when creating automations#23
Khizarshah01 wants to merge 1 commit intoRocketChat:mainfrom
Khizarshah01:fix-automation-create-default-values

Conversation

@Khizarshah01
Copy link

This PR updates the automation creation flow to correctly handle optional fields as indicated by the UI.

  • Empty Users are treated as “any user”.
  • Empty Channels default to the current room.
  • Validation logic is adjusted to prevent silent failures during automation creation.

fixes #22

A short video demonstrating the previous behavior and current.

Before

Screencast.from.2026-01-29.22-05-42.mp4

After

Screencast.from.2026-01-29.22-07-46.mp4

Testing

  • Created automations with empty Users and Channels
  • Verified automations are successfully created
  • Confirmed /chat-automation list shows the created automations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automation creation fails silently when optional fields are left empty

1 participant