Skip to content

fix: skip msg-input emit when beforeSend returns falsy value#2055

Merged
cstns merged 1 commit intoFlowFuse:mainfrom
Marchal-web:fix/beforesend-emit-when-falsy
Mar 23, 2026
Merged

fix: skip msg-input emit when beforeSend returns falsy value#2055
cstns merged 1 commit intoFlowFuse:mainfrom
Marchal-web:fix/beforesend-emit-when-falsy

Conversation

@Marchal-web
Copy link
Copy Markdown

Fixes #2046

When beforeSend returns false, the emit was still called unconditionally.
Added a guard so msg-input is only emitted when msg is truthy.

@hardillb
Copy link
Copy Markdown
Contributor

Thanks for this, I'll try and get it reviewed and released shortly.

@hardillb
Copy link
Copy Markdown
Contributor

Expected CI test failure (still can't work out why it only fails when run under GHA)

@hardillb hardillb added this to the 2.29 milestone Mar 13, 2026
@hardillb hardillb moved this to Todo in 🛠 Development Mar 13, 2026
@cstns cstns moved this from Todo to In Progress in 🛠 Development Mar 23, 2026
@cstns cstns self-requested a review March 23, 2026 09:16
@cstns cstns assigned Marchal-web and unassigned cstns Mar 23, 2026
Copy link
Copy Markdown
Contributor

@cstns cstns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cstns cstns merged commit 341a9f8 into FlowFuse:main Mar 23, 2026
4 of 5 checks passed
@cstns cstns moved this from In Progress to Done in 🛠 Development Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

beforeSend returning false still emits msg-input via Socket.IO

3 participants