Skip to content

Commit

Permalink
fix: add update chat when entering a protected chat (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcwild authored Nov 26, 2023
1 parent 5de8857 commit dc90d62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/chat/chat.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export class ChatGateway
}
client.join(`chat:${chatId}`);
client.emit('joinChat', { message: `You joined chat ${chatId}`, chat });
await this.updateListMembers(chatId);
}

@SubscribeMessage('leaveChat')
Expand Down

0 comments on commit dc90d62

Please sign in to comment.