This commit is contained in:
Erik Johnston
2026-03-04 17:20:06 +00:00
parent 2631c7454f
commit fdc3d97e49
+15 -7
View File
@@ -393,6 +393,21 @@ impl Event {
})
}
fn get_dict<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
match &self.inner {
EventFormatEnum::V3(format) => Ok(pythonize(py, format)?),
// ...
}
}
fn get_pdu_json<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
// We need to do a bunch of changes here.
match &self.inner {
EventFormatEnum::V3(format) => Ok(pythonize(py, format)?),
// ...
}
}
#[getter]
fn room_id(&self) -> Option<&str> {
match &self.inner {
@@ -409,13 +424,6 @@ impl Event {
}
}
fn get_pdu_json<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
match &self.inner {
EventFormatEnum::V3(format) => Ok(pythonize(py, format)?),
// ...
}
}
#[getter]
fn content(&self) -> PyResult<JsonObject> {
match &self.inner {