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

electron-main: Skip the reindex if we're going to delete the db anyways. #104

Merged
merged 3 commits into from
Jun 24, 2020

Conversation

poljar
Copy link
Contributor

@poljar poljar commented Jun 23, 2020

This requires a Seshat release with matrix-org/seshat#69 so we can check the user version from a recovery database.

Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

otherwise lgtm

@@ -207,6 +207,14 @@ let eventIndex = null;
let mainWindow = null;
global.appQuitting = false;


const deleteFolderRecursive = async (p) => {
Copy link
Member

Choose a reason for hiding this comment

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

'deleteContents' might be a better name for this, as it's not actually recursive (alternatively, fs.unlink does have a recursive option now, although it is unstable).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I saw the unlink thing and saw that it was unstable, thus I was sad.

Anyways renamed.

@poljar
Copy link
Contributor Author

poljar commented Jun 24, 2020

Bumped the Seshat version now as well since we got a release out. Can I get the ✔️ if this is fine to merge?

@poljar poljar merged commit a11feac into develop Jun 24, 2020
@t3chguy t3chguy deleted the poljar/skip-unneeded-reindex branch May 3, 2022 09:58
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

3 participants