fix(chat): keep the webm extension for downloaded clips
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -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
}