Fix regression in producing sections when converting SlashCommandOutput
to event stream (#20404)
Closes #20243 Release Notes: - N/A
This commit is contained in:
parent
8cc3ce1f17
commit
2fe9cd8faa
6 changed files with 41 additions and 60 deletions
|
@ -256,8 +256,7 @@ fn collect_files(
|
|||
break;
|
||||
}
|
||||
directory_stack.pop().unwrap();
|
||||
events_tx
|
||||
.unbounded_send(Ok(SlashCommandEvent::EndSection { metadata: None }))?;
|
||||
events_tx.unbounded_send(Ok(SlashCommandEvent::EndSection))?;
|
||||
events_tx.unbounded_send(Ok(SlashCommandEvent::Content(
|
||||
SlashCommandContent::Text {
|
||||
text: "\n".into(),
|
||||
|
@ -362,7 +361,7 @@ fn collect_files(
|
|||
}
|
||||
|
||||
while let Some(_) = directory_stack.pop() {
|
||||
events_tx.unbounded_send(Ok(SlashCommandEvent::EndSection { metadata: None }))?;
|
||||
events_tx.unbounded_send(Ok(SlashCommandEvent::EndSection))?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue