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: use return value of importSelfKeys instead of ImexProgress event #3397

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Sep 12, 2023

This makes the code similar to the export code.

Without this fix the toast "Secret keys imported from ..." is not displayed when I tested, probably due
to the race condition between getting the ImexProgress event and removing the handler.

@link2xt link2xt requested a review from Simon-Laux September 12, 2023 16:01
@link2xt
Copy link
Collaborator Author

link2xt commented Sep 12, 2023

Looked into this code because I want to fix https://support.delta.chat/t/deltachat-fails-to-import-keys/2592, the next step would be making it possible to select the secret key file directly rather than a folder.

This makes the code similar to the export code.

Without this fix the toast "Secret keys imported from ..."
is not displayed when I tested, probably due
to the race condition between getting the ImexProgress event
and removing the handler.
@link2xt link2xt force-pushed the link2xt/import-self-keys-return-value branch from 445fc4c to 3ad3ee7 Compare September 12, 2023 16:04
@link2xt link2xt merged commit 1ad6e2e into master Sep 12, 2023
6 checks passed
@link2xt link2xt deleted the link2xt/import-self-keys-return-value branch September 12, 2023 16:22
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.

2 participants