Skip to content

Commit eb4ce71

Browse files
committed
Fix
1 parent bc75110 commit eb4ce71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/imessage/cloud_messages.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ pub struct MMCSAttachmentMeta {
355355
pub inline_attachment: Option<String>,
356356
pub message_part: Option<String>,
357357

358-
pub file_size: NumOrString,
358+
pub file_size: Option<NumOrString>,
359359
pub uti_type: Option<String>,
360360
pub mime_type: Option<String>,
361361
pub name: Option<String>,
@@ -374,7 +374,7 @@ impl Into<Option<MMCSAttachmentMeta>> for &Attachment {
374374
inline_attachment: Some("ia-0".to_string()),
375375
message_part: Some("0".to_string()),
376376

377-
file_size: NumOrString::Num(_inline.len() as u32),
377+
file_size: Some(NumOrString::Num(_inline.len() as u32)),
378378
uti_type: Some(self.uti_type.clone()),
379379
mime_type: Some(self.mime.clone()),
380380
name: Some(self.name.clone())
@@ -388,7 +388,7 @@ impl Into<Option<MMCSAttachmentMeta>> for &Attachment {
388388
inline_attachment: None,
389389
message_part: None,
390390

391-
file_size: NumOrString::Num(mmcs.size as u32),
391+
file_size: Some(NumOrString::Num(mmcs.size as u32)),
392392
uti_type: Some(self.uti_type.clone()),
393393
mime_type: Some(self.mime.clone()),
394394
name: Some(self.name.clone())

0 commit comments

Comments
 (0)