mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 21:52:30 -04:00
chore(sdk): Remove Flow.timestamp and .raw_event.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user