mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +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()
|
||||
};
|
||||
let res = ts
|
||||
.format(&format!(
|
||||
"voice-message_%04i-%02i-%02i_%02i-%02i-%02i.{}",
|
||||
suffix
|
||||
))
|
||||
.format(&format!("voice-message_%Y-%m-%d_%H-%M-%S.{}", suffix))
|
||||
.to_string();
|
||||
filename_to_send = strdup(to_cstring(res).as_ptr());
|
||||
} else if (*msg).type_0 == 40i32 {
|
||||
|
||||
Reference in New Issue
Block a user