diff --git a/model/src/channel/mod.rs b/model/src/channel/mod.rs index c382b7bf1a6..b6e91c7e5a8 100644 --- a/model/src/channel/mod.rs +++ b/model/src/channel/mod.rs @@ -116,11 +116,8 @@ pub struct Channel { #[serde(skip_serializing_if = "Option::is_none")] pub member_count: Option, /// Number of messages in the channel. - /// - /// At most a value of 50 is provided although the real number may be - /// higher. #[serde(skip_serializing_if = "Option::is_none")] - pub message_count: Option, + pub message_count: Option, /// Name of the channel. #[serde(skip_serializing_if = "Option::is_none")] pub name: Option, @@ -370,7 +367,7 @@ mod tests { user_id: Some(Id::new(5)), }), member_count: Some(50_u8), - message_count: Some(50_u8), + message_count: Some(50), name: Some("newsthread".into()), newly_created: Some(true), nsfw: None, @@ -451,7 +448,7 @@ mod tests { user_id: Some(Id::new(5)), }), member_count: Some(50_u8), - message_count: Some(50_u8), + message_count: Some(50), name: Some("publicthread".into()), newly_created: Some(true), nsfw: None, @@ -533,7 +530,7 @@ mod tests { user_id: Some(Id::new(5)), }), member_count: Some(50_u8), - message_count: Some(50_u8), + message_count: Some(50), name: Some("privatethread".into()), newly_created: Some(true), nsfw: None,