aboutsummaryrefslogtreecommitdiffstats
path: root/luz/src/connection/read.rs
diff options
context:
space:
mode:
Diffstat (limited to 'luz/src/connection/read.rs')
-rw-r--r--luz/src/connection/read.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/luz/src/connection/read.rs b/luz/src/connection/read.rs
index aadf476..80322ce 100644
--- a/luz/src/connection/read.rs
+++ b/luz/src/connection/read.rs
@@ -6,6 +6,7 @@ use std::{
time::Duration,
};
+use chrono::{DateTime, Utc};
use jabber::{connection::Tls, jabber_stream::bound_stream::BoundJabberReader};
use stanza::client::Stanza;
use tokio::{
@@ -188,6 +189,7 @@ async fn handle_stanza(
.map(|id| Uuid::from_str(&id).unwrap_or_else(|_| Uuid::new_v4()))
.unwrap_or_else(|| Uuid::new_v4()),
from: from.clone(),
+ timestamp: Utc::now(),
body: Body {
// TODO: should this be an option?
body: stanza_message