Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions deltachat-ffi/deltachat.h
Original file line number Diff line number Diff line change
Expand Up @@ -3957,14 +3957,16 @@ int64_t dc_msg_get_timestamp (const dc_msg_t* msg);

/**
* Get the message receive time.
* The receive time is returned as a unix timestamp in seconds.
* For webxdc apps, this is the time of the last status update, if any,
* also for outgoing messages.
* The time is returned as a unix timestamp in seconds.
*
* To get the sending time, use dc_msg_get_timestamp().
*
* @memberof dc_msg_t
* @param msg The message object.
* @return The receiving time of the message.
* For outgoing messages, 0 is returned.
* @return The receiving time of the message or the time of the last webxdc update.
* 0 if there is none, e.g. for most outgoing messages that are not webxdc.
*/
int64_t dc_msg_get_received_timestamp (const dc_msg_t* msg);

Expand Down
6 changes: 6 additions & 0 deletions deltachat-jsonrpc/src/api/types/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ pub struct MessageObject {

timestamp: i64,
sort_timestamp: i64,

/// The message receive time.
/// For webxdc apps, this is the time of the last status update, if any,
/// also for outgoing messages.
/// 0 if there is none, e.g. for most outgoing messages that are not webxdc.
received_timestamp: i64,

has_deviating_timestamp: bool,

// summary - use/create another function if you need it
Expand Down
Loading