fix(hydra): Don't serialise null room IDs in PDUs

This commit is contained in:
nexy7574 2025-09-11 17:55:10 +01:00
commit 9dc336b5e8
No known key found for this signature in database
3 changed files with 2 additions and 1 deletions

View file

@ -387,6 +387,7 @@ features = [
"unstable-msc4210", # remove legacy mentions
"unstable-extensible-events",
"unstable-pdu",
"unstable-msc4155"
]
[workspace.dependencies.rust-rocksdb]

View file

@ -31,6 +31,7 @@ use crate::Result;
pub struct Pdu {
pub event_id: OwnedEventId,
#[serde(skip_serializing_if = "Option::is_none")]
pub room_id: Option<OwnedRoomId>,
pub sender: OwnedUserId,

View file

@ -7,7 +7,6 @@ use conduwuit_core::{
event::Event,
pdu::{PduCount, PduId, RawPduId},
},
trace,
utils::{IterStream, ReadyExt},
validated, warn,
};