mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-07-20 06:05:23 +00:00
Propagate user is writing message event
This commit is contained in:
@@ -66,4 +66,5 @@ pub mod new_call_signal;
|
||||
pub mod call_peer_ready;
|
||||
pub mod call_peer_interrupted_streaming;
|
||||
pub mod res_check_password_token;
|
||||
pub mod remove_user_from_conv_message;
|
||||
pub mod removed_user_from_conv_message;
|
||||
pub mod user_is_writing_message_in_conversation;
|
22
src/api_data/user_is_writing_message_in_conversation.rs
Normal file
22
src/api_data/user_is_writing_message_in_conversation.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
//! # User is writing message in conversation event
|
||||
//!
|
||||
//! @author Pierre Hubert
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::data::conversation::ConvID;
|
||||
use crate::data::user::UserID;
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct UserIsWritingMessageInConversation {
|
||||
user_id: u64,
|
||||
conv_id: u64,
|
||||
}
|
||||
|
||||
impl UserIsWritingMessageInConversation {
|
||||
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