chore(sdk): Remove Flow.timestamp and .raw_event.

This commit is contained in:
Ivan Enderlin
2023-01-30 08:50:08 +01:00
parent 322aa776f2
commit 1c8d57321c

View File

@@ -65,22 +65,6 @@ pub(super) enum Flow {
},
}
impl Flow {
fn timestamp(&self) -> MilliSecondsSinceUnixEpoch {
match self {
Flow::Local { timestamp, .. } => *timestamp,
Flow::Remote { origin_server_ts, .. } => *origin_server_ts,
}
}
fn raw_event(&self) -> Option<&Raw<AnySyncTimelineEvent>> {
match self {
Flow::Local { .. } => None,
Flow::Remote { raw_event, .. } => Some(raw_event),
}
}
}
pub(super) struct TimelineEventMetadata {
pub(super) sender: OwnedUserId,
pub(super) sender_profile: Profile,