Skip to content

Commit

Permalink
add suggested stream effect in stream result handling
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBeastLT committed Nov 6, 2023
1 parent 922ca40 commit 5c2b98b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/models/meta_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,19 @@ impl<E: Env + 'static> UpdateWithCtx<E> for MetaDetails {
Msg::Internal(Internal::ResourceRequestResult(request, result))
if request.path.resource == STREAM_RESOURCE_NAME =>
{
resources_update_with_vector_content::<E, _>(
let streams_effects = resources_update_with_vector_content::<E, _>(
&mut self.streams,
ResourcesAction::ResourceRequestResult { request, result },
)
);
let suggested_stream_effects = suggested_stream_update(
&mut self.suggested_stream,
&self.selected,
&self.meta_items,
&self.meta_streams,
&self.streams,
&ctx.streams,
);
streams_effects.join(suggested_stream_effects)
}
Msg::Internal(Internal::LibraryChanged(_)) => {
let library_item_effects = library_item_update::<E>(
Expand Down

0 comments on commit 5c2b98b

Please sign in to comment.