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

api: add API to reset contact encryption #6170

Merged
merged 1 commit into from
Nov 3, 2024
Merged

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Nov 2, 2024

Closes #4465

src/contact.rs Show resolved Hide resolved
src/contact.rs Outdated Show resolved Hide resolved
@iequidoo
Copy link
Collaborator

iequidoo commented Nov 3, 2024

Maybe the only problem is that resetting encryption is irrevertible. I'd consider adding a bool flag to API to make it possible to restore encryption

let info_msg = alice.get_last_msg_in(alice_bob_chat_id).await;
assert_eq!(
info_msg.text,
"[email protected] sent a message from another device."
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The text is not really fitting. Not sure we need a new translatable string now for this. If it is hidden behind encryption info and developer options then can be considered more a debugging tool: deltachat/deltachat-desktop#4312

@link2xt link2xt merged commit 92c6dd4 into main Nov 3, 2024
37 checks passed
@link2xt link2xt deleted the link2xt/reset-encryption branch November 3, 2024 02:04
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.

reset encryption for a contact not using DC/Autocrypt anymore
2 participants