mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-07-14 03:18:05 +00:00
Unregister user when removing him
This commit is contained in:
src
api_data
controllers
helpers
@ -65,4 +65,5 @@ pub mod left_call_message;
|
||||
pub mod new_call_signal;
|
||||
pub mod call_peer_ready;
|
||||
pub mod call_peer_interrupted_streaming;
|
||||
pub mod res_check_password_token;
|
||||
pub mod res_check_password_token;
|
||||
pub mod remove_user_from_conv_message;
|
23
src/api_data/remove_user_from_conv_message.rs
Normal file
23
src/api_data/remove_user_from_conv_message.rs
Normal file
@ -0,0 +1,23 @@
|
||||
//! # Removed user from conversation message
|
||||
//!
|
||||
//! @author Pierre Hubert
|
||||
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::data::conversation::ConvID;
|
||||
use crate::data::user::UserID;
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct RemovedUserFromConversationMessage {
|
||||
user_id: u64,
|
||||
conv_id: u64,
|
||||
}
|
||||
|
||||
impl RemovedUserFromConversationMessage {
|
||||
pub fn new(user_id: &UserID, conv_id: ConvID) -> Self {
|
||||
Self {
|
||||
user_id: user_id.id(),
|
||||
conv_id: conv_id.id(),
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user