events: Use Signatures in more places

This commit is contained in:
Kévin Commaille
2024-10-26 16:27:32 +02:00
committed by strawberry
parent 5ed3718310
commit f87f388280
5 changed files with 46 additions and 51 deletions

View File

@@ -11,7 +11,7 @@ use futures_util::future::ready;
use js_int::{int, uint};
use ruma_common::{
event_id, room_id, user_id, EventId, MilliSecondsSinceUnixEpoch, OwnedEventId, RoomId,
RoomVersionId, UserId,
RoomVersionId, ServerSignatures, UserId,
};
use ruma_events::{
pdu::{EventHash, Pdu, RoomV3Pdu},
@@ -401,7 +401,7 @@ pub(crate) fn to_init_pdu_event(
prev_events: vec![],
depth: uint!(0),
hashes: EventHash::new("".to_owned()),
signatures: BTreeMap::new(),
signatures: ServerSignatures::default(),
}),
})
}
@@ -439,7 +439,7 @@ where
prev_events,
depth: uint!(0),
hashes: EventHash::new("".to_owned()),
signatures: BTreeMap::new(),
signatures: ServerSignatures::default(),
}),
})
}