BlueGit

ict rusty-teams

fix(chat): keep the webm extension for downloaded clips

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-17 · 2 weeks ago

Hash
9e92603813e2e26d138fd23eef8bc7de0edad006
Parent
3712ca80
1 file changed +1 −0
crates/core/src/images.rs +1 −0
@@ -160,6 +160,7 @@ fn file_extension(content_type: &str, bytes: &[u8]) -> &'static str {
160 160 "image/bmp" => "bmp",
161 161 "video/mp4" => "mp4",
162 162 "video/quicktime" => "mov",
163 "video/webm" => "webm",
163 164 _ => "bin",
164 165 }
165 166 }
@@ -160,6 +160,7 @@ fn file_extension(content_type: &str, bytes: &[u8]) -> &'static str {
160 "image/bmp" => "bmp",
160 "image/bmp" => "bmp",
161 "video/mp4" => "mp4",
161 "video/mp4" => "mp4",
162 "video/quicktime" => "mov",
162 "video/quicktime" => "mov",
163 "video/webm" => "webm",
163 _ => "bin",
164 _ => "bin",
164 }
165 }
165}
166}