1
0
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:
2021-02-10 18:04:03 +01:00
parent 3c696bde5f
commit 7a0f9620b2
8 changed files with 117 additions and 7 deletions

View File

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