Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hocuri committed May 9, 2024
1 parent 869304e commit 6ac9757
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions deltachat-ffi/deltachat.h
Original file line number Diff line number Diff line change
Expand Up @@ -5479,6 +5479,11 @@ 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.
*/
#define DC_MSG_VCARD 90

/**
* @}
Expand Down
1 change: 1 addition & 0 deletions deltachat-jsonrpc/src/api/types/contact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ impl ContactObject {
pub struct VcardContact {
/// Email address.
addr: String,
/// The contact's name, or the email address if no name was given.
display_name: String,
/// Public PGP key in Base64.
key: Option<String>,
Expand Down
4 changes: 3 additions & 1 deletion deltachat-jsonrpc/src/api/types/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ pub enum MessageViewtype {
/// Message is an webxdc instance.
Webxdc,

/// vCard (virtual contact file, i.e. a shared contact) message.
/// Message containing a shared contact represented as a vCard (virtual contact file)
/// with an email address and possibly other fields.
/// Use `parse_vcard()` to retrieve them.
Vcard,
}

Expand Down
4 changes: 3 additions & 1 deletion src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,9 @@ pub enum Viewtype {
/// Message is an webxdc instance.
Webxdc = 80,

/// vCard (virtual contact file, i.e. a shared contact) message.
/// Message containing a shared contact represented as a vCard (virtual contact file)
/// with an email address and possibly other fields.
/// Use `parse_vcard()` to retrieve them.
Vcard = 90,
}

Expand Down

0 comments on commit 6ac9757

Please sign in to comment.