Fix regression in producing sections when converting SlashCommandOutput to event stream (#20404)

Closes #20243 

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2024-11-08 09:29:14 +01:00 committed by GitHub
parent 8cc3ce1f17
commit 2fe9cd8faa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 41 additions and 60 deletions

View file

@ -84,7 +84,7 @@ impl SlashCommand for SelectionCommand {
text,
run_commands_in_text: false,
})));
events.push(Ok(SlashCommandEvent::EndSection { metadata: None }));
events.push(Ok(SlashCommandEvent::EndSection));
events.push(Ok(SlashCommandEvent::Content(SlashCommandContent::Text {
text: "\n".to_string(),
run_commands_in_text: false,