Make JsonObject.object private

This commit is contained in:
Erik Johnston
2026-05-21 14:26:02 +01:00
parent 8e6e29cf1a
commit 27e312ddaf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ use serde::{Deserialize, Serialize};
#[pyclass(mapping, frozen, skip_from_py_object)]
#[serde(transparent)]
pub struct JsonObject {
pub object: Arc<BTreeMap<Box<str>, serde_json::Value>>,
object: Arc<BTreeMap<Box<str>, serde_json::Value>>,
}
#[pymethods]
+1 -1
View File
@@ -503,7 +503,7 @@ impl Event {
fn redacts<'py>(&self, py: Python<'py>) -> PyResult<Option<Bound<'py, PyAny>>> {
let common = &self.fields.common_fields;
let value = if self.room_version.updated_redaction_rules {
common.content.object.get(REDACTS)
common.content.get_field(REDACTS)
} else {
common.other_fields.get(REDACTS)
};