Fix HighlightTweak deserialization
This commit is contained in:
parent
657721b1e6
commit
cf2747cc70
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ruma-common"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["Jonas Platte <jplatte@posteo.de>"]
|
||||
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"] }
|
||||
|
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user