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

Fix issue in conversation creation

This commit is contained in:
Pierre HUBERT 2021-03-06 18:52:12 +01:00
parent 8ba47aa0df
commit bb6fa6954f

View File

@ -19,7 +19,6 @@ use crate::utils::user_data_utils::delete_user_data_file_if_exists;
pub fn create(conv: &NewConversation) -> Res<ConvID> { pub fn create(conv: &NewConversation) -> Res<ConvID> {
// Create the conversation in the main table // Create the conversation in the main table
let conv_id = InsertQuery::new(CONV_LIST_TABLE) let conv_id = InsertQuery::new(CONV_LIST_TABLE)
.add_user_id("user_id", &conv.owner_id)
.add_str("name", conv.name.clone().unwrap_or(String::new()).as_str()) .add_str("name", conv.name.clone().unwrap_or(String::new()).as_str())
.add_u64("last_activity", time()) .add_u64("last_activity", time())
.add_u64("creation_time", time()) .add_u64("creation_time", time())