Skip to content

Commit bd86f7c

Browse files
authored
[review]FIX: add resolve state in convItem (#1557)
Signed-off-by: AidCheng <[email protected]>
1 parent dc6b547 commit bd86f7c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ceres/src/api_service/mono_api_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ impl MonoApiService {
13851385
.await
13861386
.map_err(|e| MegaError::with_message(format!("{e}")))?;
13871387

1388-
self.save_import_ref(&mega_path, &ref_name, &ref_hash.clone())
1388+
self.save_import_ref(&mega_path, &ref_name, &ref_hash)
13891389
.await?;
13901390

13911391
let shared = Arc::new(tokio::sync::Mutex::new(0));

ceres/src/model/conversation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub struct ConversationItem {
1111
pub username: String,
1212
pub conv_type: ConvType,
1313
pub comment: Option<String>,
14+
pub resolved: Option<bool>,
1415
pub created_at: i64,
1516
pub updated_at: i64,
1617
pub grouped_reactions: Vec<ReactionItem>,
@@ -27,6 +28,7 @@ impl ConversationItem {
2728
username: conversation.username,
2829
conv_type: conversation.conv_type.into(),
2930
comment: conversation.comment,
31+
resolved: conversation.resolved,
3032
created_at: conversation.created_at.and_utc().timestamp(),
3133
updated_at: conversation.updated_at.and_utc().timestamp(),
3234
grouped_reactions: vec![],

0 commit comments

Comments
 (0)