Skip to content

test: test that key of the recipient is gossiped in 1:1 chats #6808

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

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Apr 16, 2025

It is needed for multi-device setups.

@link2xt
Copy link
Collaborator Author

link2xt commented Apr 16, 2025

This was already the case, but I did not find the test. For PGP-contacts it is required that first message has Autocrypt-Gossip, otherwise we cannot even create a contact for Bob if we don't have Bob's key.

@link2xt link2xt force-pushed the link2xt/test-oneone-gossip branch from ee763ae to 1ea8647 Compare April 16, 2025 12:00
@link2xt link2xt requested review from Hocuri and iequidoo April 16, 2025 16:16

tcm.section("Alice receives a copy on second device");
let rcvd_msg = alice2.recv_msg(&sent_msg).await;
assert_eq!(rcvd_msg.get_showpadlock(), true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe also check that the contact isn't verified? Maybe this is covered by other tests though

@link2xt link2xt merged commit 1ea8647 into main Apr 16, 2025
29 checks passed
@link2xt link2xt deleted the link2xt/test-oneone-gossip branch April 16, 2025 21:11
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