mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-12 07:42:58 +02:00
fix(hydra): Don't serialise null room IDs in PDUs
This commit is contained in:
parent
94eb0f1400
commit
9dc336b5e8
3 changed files with 2 additions and 1 deletions
|
@ -387,6 +387,7 @@ features = [
|
|||
"unstable-msc4210", # remove legacy mentions
|
||||
"unstable-extensible-events",
|
||||
"unstable-pdu",
|
||||
"unstable-msc4155"
|
||||
]
|
||||
|
||||
[workspace.dependencies.rust-rocksdb]
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -7,7 +7,6 @@ use conduwuit_core::{
|
|||
event::Event,
|
||||
pdu::{PduCount, PduId, RawPduId},
|
||||
},
|
||||
trace,
|
||||
utils::{IterStream, ReadyExt},
|
||||
validated, warn,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue