From 4cf73b2d08bd50b38ca610ca67cad01958ca8577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 7 Jun 2021 17:26:56 +0200 Subject: store timestamp with messages --- mumlib/src/command.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mumlib/src/command.rs') diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index 351d7f6..27ca60c 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -1,5 +1,6 @@ use crate::state::{Channel, Server}; +use chrono::NaiveDateTime; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, Deserialize, Serialize)] @@ -63,7 +64,7 @@ pub enum CommandResponse { server_state: Server, }, PastMessage { - message: (String, String), + message: (NaiveDateTime, String, String), }, } -- cgit v1.2.1