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:
@ -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;
|
20
src/api_data/res_create_conversation_for_group.rs
Normal file
20
src/api_data/res_create_conversation_for_group.rs
Normal 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()
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user