Skip to content

Commit

Permalink
chore: Additional fields to root document
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Oct 19, 2023
1 parent 7e57635 commit 4519812
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions extensions/warp-ipfs/src/store/document.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pub mod cache;
pub mod conversation;
pub mod identity;
pub mod root;
pub mod utils;
pub mod conversation;

use chrono::{DateTime, Utc};
use futures::TryFutureExt;
Expand Down Expand Up @@ -124,6 +124,12 @@ pub struct RootDocument {
/// array of request (Request)
#[serde(skip_serializing_if = "Option::is_none")]
pub request: Option<Cid>,
/// map of conversations
#[serde(skip_serializing_if = "Option::is_none")]
pub conversations: Option<Cid>,
/// map of keystore for group chat conversations
#[serde(skip_serializing_if = "Option::is_none")]
pub conversations_keystore: Option<Cid>,
/// Online/Away/Busy/Offline status
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<IdentityStatus>,
Expand Down Expand Up @@ -258,6 +264,8 @@ impl RootDocument {
identity,
created: Some(data.created),
modified: Some(data.modified),
conversations: None,
conversations_keystore: None,
friends,
blocks,
block_by,
Expand Down Expand Up @@ -293,4 +301,4 @@ impl RootDocument {

Ok(exported)
}
}
}

0 comments on commit 4519812

Please sign in to comment.