Fix fallback text field name for extensible events in RoomMessageEventContentWithoutRelation::make_reply_to_raw()

This commit is contained in:
Kévin Commaille 2023-11-14 16:57:00 +01:00 committed by Kévin Commaille
parent 64089ed758
commit e409d22ea0
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# [unreleased]
Bug fixes:
- Fix the name of the fallback text field for extensible events in
`RoomMessageEventContentWithoutRelation::make_reply_to_raw()`
# 0.27.8
Improvements:

View File

@ -162,7 +162,7 @@ impl RoomMessageEventContentWithoutRelation {
#[serde(flatten)]
formatted: Option<FormattedBody>,
#[cfg(feature = "unstable-msc1767")]
#[serde(rename = "org.matrix.msc1767")]
#[serde(rename = "org.matrix.msc1767.text")]
text: Option<String>,
#[serde(rename = "m.relates_to")]
relates_to: Option<crate::room::encrypted::Relation>,