From 54c30145e5a00d299826b4145fa36a27d81e0e9e Mon Sep 17 00:00:00 2001 From: flipsimon <28535045+flipsimon@users.noreply.github.com> Date: Thu, 4 Aug 2022 14:40:13 +0200 Subject: [PATCH] Added lastSeen property to ContactObject --- deltachat-jsonrpc/src/api/types/contact.rs | 2 ++ deltachat-jsonrpc/typescript/generated/types.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/deltachat-jsonrpc/src/api/types/contact.rs b/deltachat-jsonrpc/src/api/types/contact.rs index 13534f9bf..296877a8a 100644 --- a/deltachat-jsonrpc/src/api/types/contact.rs +++ b/deltachat-jsonrpc/src/api/types/contact.rs @@ -15,6 +15,7 @@ pub struct ContactObject { status: String, display_name: String, id: u32, + last_seen: i64, name: String, profile_image: Option, // BLOBS name_and_addr: String, @@ -40,6 +41,7 @@ impl ContactObject { status: contact.get_status().to_owned(), display_name: contact.get_display_name().to_owned(), id: contact.id.to_u32(), + last_seen: contact.last_seen(), name: contact.get_name().to_owned(), profile_image, //BLOBS name_and_addr: contact.get_name_n_addr(), diff --git a/deltachat-jsonrpc/typescript/generated/types.ts b/deltachat-jsonrpc/typescript/generated/types.ts index 076541d45..d9578240a 100644 --- a/deltachat-jsonrpc/typescript/generated/types.ts +++ b/deltachat-jsonrpc/typescript/generated/types.ts @@ -104,6 +104,7 @@ export type Contact = { status: string; displayName: string; id: U32; + lastSeen: I64; name: string; profileImage: string | null; nameAndAddr: string;