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

Can create group conversation

This commit is contained in:
2021-04-03 19:00:18 +02:00
parent 1fc6f08b19
commit 63c284c322
11 changed files with 202 additions and 43 deletions

View File

@ -67,4 +67,5 @@ pub mod call_peer_ready;
pub mod call_peer_interrupted_streaming;
pub mod res_check_password_token;
pub mod removed_user_from_conv_message;
pub mod user_is_writing_message_in_conversation;
pub mod user_is_writing_message_in_conversation;
pub mod res_create_conversation_for_group;

View File

@ -0,0 +1,20 @@
//! # Conversation for group creation result
//!
//! This structure returns the ID of the create conversation
use serde::Serialize;
use crate::data::conversation::ConvID;
#[derive(Serialize)]
pub struct ResCreateConversationForGroup {
conv_id: u64
}
impl ResCreateConversationForGroup {
pub fn new(conv_id: ConvID) -> Self {
Self {
conv_id: conv_id.id()
}
}
}