Skip to content

Commit 71b057d

Browse files
zzorbabnjbvr
andauthored
Apply suggestions from code review
Co-authored-by: Benjamin Bouvier <[email protected]> Signed-off-by: Daniel Salinas <[email protected]>
1 parent b5e4b99 commit 71b057d

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

crates/matrix-sdk-base/src/store/send_queue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub struct QueuedRequest {
133133
/// should be handled.
134134
pub priority: usize,
135135

136-
/// The time that the request was original attempted.
136+
/// The time that the request was originally attempted.
137137
pub created_at: Option<MilliSecondsSinceUnixEpoch>,
138138
}
139139

@@ -376,7 +376,7 @@ pub struct DependentQueuedRequest {
376376
/// returned by the server once the local echo has been sent out.
377377
pub parent_key: Option<SentRequestKey>,
378378

379-
/// The time that the request was original attempted.
379+
/// The time that the request was originally attempted.
380380
#[serde(skip_serializing_if = "Option::is_none")]
381381
pub created_at: Option<MilliSecondsSinceUnixEpoch>,
382382
}

crates/matrix-sdk-sqlite/src/state_store.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,6 +2467,7 @@ mod migration_tests {
24672467

24682468
Ok(())
24692469
}
2470+
24702471
fn add_dependent_send_queue_event_v7(
24712472
this: &SqliteStateStore,
24722473
txn: &Transaction<'_>,

crates/matrix-sdk-ui/src/timeline/event_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ impl<'a, 'o> TimelineEventHandler<'a, 'o> {
10331033
send_state: EventSendState::NotSentYet,
10341034
transaction_id: txn_id.to_owned(),
10351035
send_handle: send_handle.clone(),
1036-
created_at: send_handle.clone().and_then(|h| h.created_at),
1036+
created_at: send_handle.created_at,
10371037
}
10381038
.into(),
10391039

crates/matrix-sdk-ui/src/timeline/event_item/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl EventTimelineItem {
268268
as_variant!(&self.kind, EventTimelineItemKind::Local(local) => &local.send_state)
269269
}
270270

271-
/// Get the local time that the event was enqueued at.
271+
/// Get the time that the local event was pushed in the send queue at.
272272
pub fn local_created_at(&self) -> Option<MilliSecondsSinceUnixEpoch> {
273273
as_variant!(&self.kind, EventTimelineItemKind::Local(local) => local.created_at).flatten()
274274
}

0 commit comments

Comments
 (0)