Skip to content

Commit

Permalink
review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
iequidoo committed May 11, 2024
1 parent 6ac9757 commit 1c0fb5f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions deltachat-ffi/deltachat.h
Original file line number Diff line number Diff line change
Expand Up @@ -5480,8 +5480,8 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
#define DC_MSG_WEBXDC 80

/**
* Message containing a shared contact represented as a vCard (virtual contact file)
* with an email address and possibly other fields.
* Message containing shared contacts represented as a vCard (virtual contact file)
* with email addresses and possibly other fields.
*/
#define DC_MSG_VCARD 90

Expand Down
4 changes: 2 additions & 2 deletions deltachat-jsonrpc/src/api/types/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ pub enum MessageViewtype {
/// Message is an webxdc instance.
Webxdc,

/// Message containing a shared contact represented as a vCard (virtual contact file)
/// with an email address and possibly other fields.
/// Message containing shared contacts represented as a vCard (virtual contact file)
/// with email addresses and possibly other fields.
/// Use `parse_vcard()` to retrieve them.
Vcard,
}
Expand Down
4 changes: 2 additions & 2 deletions src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1981,8 +1981,8 @@ pub enum Viewtype {
/// Message is an webxdc instance.
Webxdc = 80,

/// Message containing a shared contact represented as a vCard (virtual contact file)
/// with an email address and possibly other fields.
/// Message containing shared contacts represented as a vCard (virtual contact file)
/// with email addresses and possibly other fields.
/// Use `parse_vcard()` to retrieve them.
Vcard = 90,
}
Expand Down
4 changes: 2 additions & 2 deletions src/mimeparser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1977,8 +1977,8 @@ fn is_valid_deltachat_vcard(mail: &mailparse::ParsedMail) -> bool {
return false;
};
let contacts = deltachat_contact_tools::parse_vcard(body);
if let Some(contact) = contacts.first() {
if deltachat_contact_tools::may_be_valid_addr(&contact.addr) {
for c in &contacts {
if deltachat_contact_tools::may_be_valid_addr(&c.addr) {
return true;
}
}
Expand Down

0 comments on commit 1c0fb5f

Please sign in to comment.