diff --git a/collab-database/src/fields/type_option/media_type_option.rs b/collab-database/src/fields/type_option/media_type_option.rs index b332bc62c..3040bf940 100644 --- a/collab-database/src/fields/type_option/media_type_option.rs +++ b/collab-database/src/fields/type_option/media_type_option.rs @@ -11,12 +11,19 @@ use std::path::Path; use std::sync::Arc; use yrs::Any; -#[derive(Debug, Clone, Default, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct MediaTypeOption { - #[serde(default)] pub hide_file_names: bool, } +impl Default for MediaTypeOption { + fn default() -> Self { + Self { + hide_file_names: true, + } + } +} + impl StringifyTypeOption for MediaTypeOption { fn stringify_cell(&self, cell: &Cell) -> String { match cell.get_as::(CELL_DATA) {