From 5c2b98b1376b2a42a2f37f1353ad06a53ba9c88c Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Mon, 6 Nov 2023 13:43:48 +0200 Subject: [PATCH] add suggested stream effect in stream result handling --- src/models/meta_details.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/models/meta_details.rs b/src/models/meta_details.rs index 4d2c789cb..3d18c2f54 100644 --- a/src/models/meta_details.rs +++ b/src/models/meta_details.rs @@ -191,10 +191,19 @@ impl UpdateWithCtx for MetaDetails { Msg::Internal(Internal::ResourceRequestResult(request, result)) if request.path.resource == STREAM_RESOURCE_NAME => { - resources_update_with_vector_content::( + let streams_effects = resources_update_with_vector_content::( &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::(