Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #69 from Stremio/fix/streams-bucket-profile-uid
Browse files Browse the repository at this point in the history
fix: StreamsBucket - use profile.uid() on missing bucket
  • Loading branch information
elpiel authored Oct 22, 2023
2 parents 3ab5567 + c5b647f commit b6b8853
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stremio_core_web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ pub async fn initialize_runtime(emit_to_ui: js_sys::Function) -> Result<(), JsVa
if let Some(other_bucket) = other_bucket {
library.merge_bucket(other_bucket);
};
let streams_bucket = streams_bucket.unwrap_or_default();
let streams_bucket =
streams_bucket.unwrap_or_else(|| StreamsBucket::new(profile.uid()));
let notifications_bucket = notifications_bucket
.unwrap_or(NotificationsBucket::new::<WebEnv>(profile.uid(), vec![]));
let (model, effects) =
Expand Down

0 comments on commit b6b8853

Please sign in to comment.