diff --git a/src/api_data/conversation_message_api.rs b/src/api_data/conversation_message_api.rs index cc5f679..14eed26 100644 --- a/src/api_data/conversation_message_api.rs +++ b/src/api_data/conversation_message_api.rs @@ -24,7 +24,7 @@ pub struct ConversationMessageAPI { id: u64, conv_id: u64, user_id: Option, - time_insert: u64, + time_sent: u64, message: Option, file: Option, server_message: Option, @@ -81,7 +81,7 @@ impl ConversationMessageAPI { id: msg.id, conv_id: msg.conv_id.id(), user_id: msg.user_id.clone().map(|u| u.id()), - time_insert: msg.time_sent, + time_sent: msg.time_sent, message: msg.message.clone(), file, server_message,