mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 07:16:31 +03:00
fix(mimefactory): fix formatting string for voice message files
adapt data-format for sent voice-messages-filename and avoid crash on sending voice messages Closes #107
This commit is contained in:
committed by
Friedel Ziegelmayer
parent
60bb2288bd
commit
88519d07ca
@@ -1144,10 +1144,7 @@ unsafe fn build_body_file(
|
|||||||
"dat".into()
|
"dat".into()
|
||||||
};
|
};
|
||||||
let res = ts
|
let res = ts
|
||||||
.format(&format!(
|
.format(&format!("voice-message_%Y-%m-%d_%H-%M-%S.{}", suffix))
|
||||||
"voice-message_%04i-%02i-%02i_%02i-%02i-%02i.{}",
|
|
||||||
suffix
|
|
||||||
))
|
|
||||||
.to_string();
|
.to_string();
|
||||||
filename_to_send = strdup(to_cstring(res).as_ptr());
|
filename_to_send = strdup(to_cstring(res).as_ptr());
|
||||||
} else if (*msg).type_0 == 40i32 {
|
} else if (*msg).type_0 == 40i32 {
|
||||||
|
|||||||
Reference in New Issue
Block a user