mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
Added lastSeen property to ContactObject
This commit is contained in:
@@ -15,6 +15,7 @@ pub struct ContactObject {
|
|||||||
status: String,
|
status: String,
|
||||||
display_name: String,
|
display_name: String,
|
||||||
id: u32,
|
id: u32,
|
||||||
|
last_seen: i64,
|
||||||
name: String,
|
name: String,
|
||||||
profile_image: Option<String>, // BLOBS
|
profile_image: Option<String>, // BLOBS
|
||||||
name_and_addr: String,
|
name_and_addr: String,
|
||||||
@@ -40,6 +41,7 @@ impl ContactObject {
|
|||||||
status: contact.get_status().to_owned(),
|
status: contact.get_status().to_owned(),
|
||||||
display_name: contact.get_display_name().to_owned(),
|
display_name: contact.get_display_name().to_owned(),
|
||||||
id: contact.id.to_u32(),
|
id: contact.id.to_u32(),
|
||||||
|
last_seen: contact.last_seen(),
|
||||||
name: contact.get_name().to_owned(),
|
name: contact.get_name().to_owned(),
|
||||||
profile_image, //BLOBS
|
profile_image, //BLOBS
|
||||||
name_and_addr: contact.get_name_n_addr(),
|
name_and_addr: contact.get_name_n_addr(),
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ export type Contact = {
|
|||||||
status: string;
|
status: string;
|
||||||
displayName: string;
|
displayName: string;
|
||||||
id: U32;
|
id: U32;
|
||||||
|
lastSeen: I64;
|
||||||
name: string;
|
name: string;
|
||||||
profileImage: string | null;
|
profileImage: string | null;
|
||||||
nameAndAddr: string;
|
nameAndAddr: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user