fix: Stop embedding prev_content during event creation

This commit is contained in:
timedout committed 2026-10-03 19:23:59 +01:00
1 parent d83da6ada7
commit d7b0889a6a
1 file changed
-5
-5
View File
@@ -183,11 +183,6 @@ pub async fn create_event(
.room_state_get(room_id, &event_type.clone().to_string().into(), state_key)
.await
{
unsigned.insert("prev_content".to_owned(), prev_pdu.get_content_as_value());
unsigned.insert(
"prev_sender".to_owned(),
serde_json::to_value(prev_pdu.sender())?,
);
unsigned.insert(
"replaces_state".to_owned(),
serde_json::to_value(prev_pdu.event_id())?,