mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-19 11:28:46 +00:00
Can leave a call
This commit is contained in:
@@ -11,8 +11,14 @@ use crate::data::conversation::ConvID;
|
||||
use crate::data::conversation_message::ConversationMessage;
|
||||
use crate::data::error::Res;
|
||||
use crate::data::user::UserID;
|
||||
use crate::data::user_ws_connection::UserWsConnection;
|
||||
|
||||
pub enum Event<'a> {
|
||||
/// Websocket of a user was closed
|
||||
///
|
||||
/// This event is propagated BEFORE the removal of the connection from the list
|
||||
UserWsClosed(&'a UserWsConnection),
|
||||
|
||||
/// Destroyed a login token
|
||||
DestroyedLoginToken(UserID, &'a APIClient),
|
||||
|
||||
@@ -44,7 +50,10 @@ pub enum Event<'a> {
|
||||
ClosedRTCRelayWebSocket,
|
||||
|
||||
/// User joined call
|
||||
UserJoinedCall(ConvID, UserID),
|
||||
UserJoinedCall(&'a ConvID, &'a UserID),
|
||||
|
||||
/// User left call
|
||||
UserLeftCall(&'a ConvID, &'a UserID),
|
||||
|
||||
/// No event
|
||||
None,
|
||||
|
Reference in New Issue
Block a user