events: change type of state_key field of HierarchySpaceChildEvent to OwnedRoomId

This commit is contained in:
Matthias Ahouansou 2024-02-24 10:46:35 +00:00 committed by Kévin Commaille
parent abebde0cf1
commit 1a1c61ee1e
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Breaking changes:
-`RoomPowerLevels::user_can_redact` is split into `user_can_redact_own_event`
and `user_can_redact_event_of_other`,
- `PowerLevelAction::Redact` is split into `RedactOwn` and `RedactOther`.
- Use `OwnedRoomId` instead of `String` for the `state_key` field of `HierarchySpaceChildEvent`
Improvements:

View File

@ -63,7 +63,7 @@ pub struct HierarchySpaceChildEvent {
pub sender: OwnedUserId,
/// The room ID of the child.
pub state_key: String,
pub state_key: OwnedRoomId,
/// Timestamp in milliseconds on originating homeserver when this event was sent.
pub origin_server_ts: MilliSecondsSinceUnixEpoch,