mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-24 15:15:22 +00:00
Make JsonObject.object private
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user