1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29:21 +00:00

Fix bad name

This commit is contained in:
Pierre HUBERT 2021-03-05 13:54:54 +01:00
parent 590aba0848
commit d421b1d3ba

View File

@ -24,7 +24,7 @@ pub struct ConversationMessageAPI {
id: u64, id: u64,
conv_id: u64, conv_id: u64,
user_id: Option<u64>, user_id: Option<u64>,
time_insert: u64, time_sent: u64,
message: Option<String>, message: Option<String>,
file: Option<ConversationMessageFileAPI>, file: Option<ConversationMessageFileAPI>,
server_message: Option<serde_json::Value>, server_message: Option<serde_json::Value>,
@ -81,7 +81,7 @@ impl ConversationMessageAPI {
id: msg.id, id: msg.id,
conv_id: msg.conv_id.id(), conv_id: msg.conv_id.id(),
user_id: msg.user_id.clone().map(|u| u.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(), message: msg.message.clone(),
file, file,
server_message, server_message,