MCPcopy Create free account
hub / github.com/chatmail/core / get_timestamp

Method get_timestamp

deltachat-ffi/src/dc_array.rs:31–42  ·  view source on GitHub ↗
(&self, index: usize)

Source from the content-addressed store, hash-verified

29 }
30
31 pub(crate) fn get_timestamp(&self, index: usize) -> Option<i64> {
32 match self {
33 Self::MsgIds(_) => None,
34 Self::ContactIds(_) => None,
35 Self::Chat(array) => array.get(index).and_then(|item| match item {
36 ChatItem::Message { .. } => None,
37 ChatItem::DayMarker { timestamp } => Some(*timestamp),
38 }),
39 Self::Locations(array) => array.get(index).map(|location| location.timestamp),
40 Self::Uint(_) => None,
41 }
42 }
43
44 pub(crate) fn get_marker(&self, index: usize) -> Option<&str> {
45 match self {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected