1
0
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:
2021-03-07 19:30:02 +01:00
parent 7ae8fb2fad
commit 0f4b7af449
5 changed files with 52 additions and 1 deletions

@ -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;

@ -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(),
}
}
}