diff --git a/Cargo.toml b/Cargo.toml index 13866cae..d33d8eba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruma-common" -version = "0.1.0" +version = "0.1.1" authors = ["Jonas Platte "] description = "Common types for other ruma crates." homepage = "https://github.com/ruma/ruma-common" @@ -11,6 +11,6 @@ repository = "https://github.com/ruma/ruma-client-api" edition = "2018" [dependencies] -ruma-serde = "0.1.2" +ruma-serde = "0.1.3" serde = { version = "1.0.106", features = ["derive"] } serde_json = { version = "1.0.52", features = ["raw_value"] } diff --git a/src/push/tweak_serde.rs b/src/push/tweak_serde.rs index ce7268c0..1d022ef8 100644 --- a/src/push/tweak_serde.rs +++ b/src/push/tweak_serde.rs @@ -23,6 +23,10 @@ pub struct SoundTweak { #[derive(Clone, Debug, PartialEq, Deserialize, Serialize)] #[serde(tag = "set_tweak", rename = "highlight")] pub struct HighlightTweak { + #[serde( + default = "ruma_serde::default_true", + skip_serializing_if = "ruma_serde::is_true" + )] value: bool, }