Skip to content

Commit 7b270a6

Browse files
committed
chore: typos
1 parent cb10d77 commit 7b270a6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/cli/get_dm_user.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub async fn execute_get_dm_user(
6161
.checked_sub_signed(chrono::Duration::minutes(*since))
6262
.unwrap()
6363
.timestamp();
64-
messages.retain(|(_, ts, _)| (*ts as i64) >= cutoff_ts);
64+
messages.retain(|(_, ts, _)| (*ts) >= cutoff_ts);
6565
}
6666

6767
// 5. Keep only messages sent by the counterparty (not our own side)
@@ -73,11 +73,10 @@ pub async fn execute_get_dm_user(
7373
}
7474

7575
// 6. Pretty-print the messages
76-
println!("");
7776
print_section_header("💬 Shared-Key Chat Messages");
7877

7978
for (idx, (content, ts, sender_pk)) in messages.iter().enumerate() {
80-
let date = match chrono::DateTime::from_timestamp(*ts as i64, 0) {
79+
let date = match chrono::DateTime::from_timestamp(*ts, 0) {
8180
Some(dt) => dt.format("%Y-%m-%d %H:%M:%S").to_string(),
8281
None => "Invalid timestamp".to_string(),
8382
};

0 commit comments

Comments
 (0)