1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Handle user removed from conversation events

This commit is contained in:
2021-03-13 12:16:57 +01:00
parent ed9f5e396c
commit a630a5ae79
3 changed files with 21 additions and 0 deletions

View File

@ -79,6 +79,14 @@ class DeletedConversationMessageEvent {
DeletedConversationMessageEvent(this.msg);
}
/// Remove user from conversation
class RemovedUserFromConversation {
final int convID;
final int userID;
RemovedUserFromConversation(this.convID, this.userID);
}
/// User joined call event
class UserJoinedCallEvent {
final int callID;

View File

@ -168,6 +168,12 @@ class WebSocketHelper {
ConversationsHelper.apiToConversationMessage(msg.data)));
break;
// Removed user from conversation
case "removed_user_from_conv":
EventsHelper.emit(RemovedUserFromConversation(
msg.data["conv_id"], msg.data["user_id"]));
break;
// A user joined a call
case "user_joined_call":
EventsHelper.emit(