Skip to content

fix: Fix order of operations when handling "vc-request-with-auth"#6850

Merged
Hocuri merged 1 commit intomainfrom
hoc/verify-later
May 12, 2025
Merged

fix: Fix order of operations when handling "vc-request-with-auth"#6850
Hocuri merged 1 commit intomainfrom
hoc/verify-later

Conversation

@Hocuri
Copy link
Copy Markdown
Collaborator

@Hocuri Hocuri commented May 12, 2025

No description provided.

@Hocuri Hocuri requested a review from link2xt May 12, 2025 13:02
@Hocuri Hocuri force-pushed the hoc/verify-later branch from ad1be8a to 3c44a83 Compare May 12, 2025 13:12

// Bob should already have Alice's key
// so that he can directly send vc-request-with-auth
tcm.send_recv(alice, bob, "hi").await;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You don't need to send any messages, just import a vCard with add_or_lookup_contact_id.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Importing a vCard only sets gossiped key, and bob::start_protocol()->verify_sender_by_fingerprint() only looks at the public_key_fingerprint. So, the test would fail. With PGP contacts, it would be enough to call bob.create_chat(alice)

@Hocuri Hocuri force-pushed the hoc/verify-later branch from 3c44a83 to 3e2793e Compare May 12, 2025 13:13
@Hocuri Hocuri merged commit a981573 into main May 12, 2025
29 checks passed
@Hocuri Hocuri deleted the hoc/verify-later branch May 12, 2025 14:52
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