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

This commit is contained in:
nexy7574
2025-09-11 17:55:10 +01:00
parent fa460fe97c
commit a27659c73f
2 changed files with 1 additions and 1 deletions
+1
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,
-1
View File
@@ -7,7 +7,6 @@ use conduwuit_core::{
event::Event,
pdu::{PduCount, PduId, RawPduId},
},
trace,
utils::{IterStream, ReadyExt},
validated, warn,
};