Skip to content

Re-download group members before syncing when required - #60

Open
StephanBijzitter wants to merge 3 commits into
wise-old-man:masterfrom
StephanBijzitter:issue-59
Open

Re-download group members before syncing when required#60
StephanBijzitter wants to merge 3 commits into
wise-old-man:masterfrom
StephanBijzitter:issue-59

Conversation

@StephanBijzitter

Copy link
Copy Markdown
Contributor

Fixes #59 by re-downloading all group members and waiting for plugin.groupMembers to be updated
before automatically re-running this function with the up-to-date information.

It works, but could use some love.

With the intention to use it in SyncButton, where the injector cannot reach
The SyncButton kept its own copy at the time of instantiation, but did not keep
the list of to date in the event of changes, leading to a possible mismatch in content
Fixes wise-old-man#59 by re-downloading all group members and waiting for `plugin.groupMembers` to be updated
before automatically re-running this function with the up-to-date information.

It works, but could use some love.
@StephanBijzitter

Copy link
Copy Markdown
Contributor Author

While this fixes the issue, it's not ideal as it still relies on downloading a copy of the member list from the website.

I estimate a properly efficient fix that does not need to download information would blow up the size of the pull request rather a lot - so I kept this one small and isolated and will follow up with another to improve.

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.

Group gets fully replaced when sync is used and group previously failed to load

1 participant