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

Add Python tests for message forwarding from encrypted to unencrypted chat #5123

Closed
link2xt opened this issue Dec 21, 2023 · 5 comments · Fixed by #5125
Closed

Add Python tests for message forwarding from encrypted to unencrypted chat #5123

link2xt opened this issue Dec 21, 2023 · 5 comments · Fixed by #5125
Assignees

Comments

@link2xt
Copy link
Collaborator

link2xt commented Dec 21, 2023

Taking a Message object (dc_msg_t) of incoming message and sending it to another chat should work:
https://git.0x90.space/missytake/teams-bot/src/commit/b899b6c3eb8514d39470c2f7a3eed2acb86ffe81/src/teams_bot/bot.py#L198

Currently it seems not to clear Param::GuaranteeE2ee so if the message has a padlock this param is set but for outgoing message it means that encryption should actually be guaranteed and fails sending if there is no key for some recipient.

@missytake
Copy link
Contributor

So it seems we managed to pin down the issue... do you have an idea which is the latest core version which doesn't force encryption like this? Then I could pin the deltachat version in teams-bot as a quickfix.

@link2xt
Copy link
Collaborator Author

link2xt commented Dec 22, 2023

It was always working like this I think.

@missytake
Copy link
Contributor

missytake commented Dec 22, 2023

It was always working like this I think.

no, if the message is forwarded like this, and was encrypted, but not in a protected group, it works - see the test in the first commit of the attached PR, before I made it run in a protected group in the second commit.

@missytake
Copy link
Contributor

ah wait, it was with an unencrypted message, my bad. You are correct, it was always working like this I guess.

@missytake
Copy link
Contributor

Related teams-bot issue: https://git.0x90.space/missytake/teams-bot/issues/16

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