fix: make redactions permanent
This commit is contained in:
@@ -7,6 +7,7 @@ use ruma_events::{
|
||||
use ruma_federation_api::EventHash;
|
||||
use ruma_identifiers::{EventId, RoomId, UserId};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::json;
|
||||
use std::collections::HashMap;
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
@@ -62,6 +63,11 @@ impl PduEvent {
|
||||
}
|
||||
}
|
||||
|
||||
self.unsigned.insert(
|
||||
"redacted_because".to_owned(),
|
||||
json!({"content": {}, "type": "m.room.redaction"}),
|
||||
);
|
||||
|
||||
self.content = new_content.into();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user