Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix auth on addons or library failed and lock addons if failed #634

Open
wants to merge 5 commits into
base: development
Choose a base branch
from

Conversation

tymmesyde
Copy link
Member

No description provided.

@@ -19,6 +19,8 @@ pub struct Profile {
pub auth: Option<Auth>,
#[serde_as(deserialize_as = "UniqueVec<Vec<_>, DescriptorUniqueVecAdapter>")]
pub addons: Vec<Descriptor>,
#[serde(skip)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why serde(skip)? Addons will be automatically unlocked on the next page refresh.

}))
.unchanged(),
Err(error) => {
profile.addons_locked = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that will cause addons locking on any failed request for pulling addons.
we do pull addons in stremio-web on window focus.
Is that expected behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants