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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

api(deltachat-jsonrpc): return vCard contact directly in MessageObject #5592

Merged
merged 1 commit into from
May 17, 2024

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented May 17, 2024

No description provided.

@link2xt link2xt force-pushed the link2xt/jsonrpc-vcard-contact branch from 1e59513 to ba56703 Compare May 17, 2024 22:07
{
parse_vcard(vcard).into_iter().map(Into::into).collect()
} else {
Vec::new()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe just make vcard_contacts mutable? This 3-story vector initialisation looks too verbose

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I moved this into a separate function to use ? instead.

@link2xt link2xt force-pushed the link2xt/jsonrpc-vcard-contact branch from ba56703 to 70c759d Compare May 17, 2024 22:38
@link2xt link2xt changed the title feat(deltachat-jsonrpc): return vcard contact directly in MessageObject api(deltachat-jsonrpc): return vCard contact directly in MessageObject May 17, 2024
@link2xt link2xt merged commit 37d61e4 into main May 17, 2024
36 of 37 checks passed
@link2xt link2xt deleted the link2xt/jsonrpc-vcard-contact branch May 17, 2024 23:37
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.

None yet

2 participants