Remove image preview on message redaction (#448)

This commit is contained in:
VAWVAW 2025-06-05 17:16:01 +00:00 committed by GitHub
parent a9cb5608f0
commit f0de97a049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1126,6 +1126,8 @@ impl Message {
pub fn redact(&mut self, redaction: SyncRoomRedactionEvent, version: &RoomVersionId) { pub fn redact(&mut self, redaction: SyncRoomRedactionEvent, version: &RoomVersionId) {
self.event.redact(redaction, version); self.event.redact(redaction, version);
self.html = None; self.html = None;
self.downloaded = false;
self.image_preview = ImageStatus::None;
} }
} }