diff options
author | 2025-03-03 06:10:46 +0000 | |
---|---|---|
committer | 2025-03-03 06:11:47 +0000 | |
commit | 9baf682466d191f23dc830a9897948d84068b3cc (patch) | |
tree | 45382f3793459502e53d73cf72e52ee2da8cd0d0 /luz/src/chat.rs | |
parent | 542a8e299c7bfe85419d52120bdc3d7a92dcfe38 (diff) | |
download | luz-9baf682466d191f23dc830a9897948d84068b3cc.tar.gz luz-9baf682466d191f23dc830a9897948d84068b3cc.tar.bz2 luz-9baf682466d191f23dc830a9897948d84068b3cc.zip |
feat(luz): initial message timestamp support
Diffstat (limited to 'luz/src/chat.rs')
-rw-r--r-- | luz/src/chat.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/luz/src/chat.rs b/luz/src/chat.rs index 8bb81db..97518da 100644 --- a/luz/src/chat.rs +++ b/luz/src/chat.rs @@ -1,3 +1,4 @@ +use chrono::{DateTime, Utc}; use jid::JID; use uuid::Uuid; @@ -7,6 +8,7 @@ pub struct Message { // does not contain full user information #[sqlx(rename = "from_jid")] pub from: JID, + pub timestamp: DateTime<Utc>, // TODO: originally_from // TODO: message edits // TODO: message timestamp |