1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Get the list of conversations of the user

This commit is contained in:
2020-06-04 19:01:35 +02:00
parent e92b3ef821
commit 620328b33b
8 changed files with 218 additions and 5 deletions

19
src/data/conversation.rs Normal file
View File

@ -0,0 +1,19 @@
//! # Conversation information
//!
//! @author Pierre Hubert
use crate::data::user::UserID;
#[derive(Debug)]
pub struct Conversation {
pub id: u64,
pub owner_id: UserID,
pub name: Option<String>,
pub members: Vec<UserID>,
pub can_everyone_add_members: bool,
pub last_active: u64,
pub time_create: u64,
pub following: bool,
pub saw_last_message: bool,
}

View File

@ -7,4 +7,5 @@ pub mod api_client;
pub mod user;
pub mod user_token;
pub mod custom_emoji;
pub mod new_conversation;
pub mod new_conversation;
pub mod conversation;