Skip to content
Snippets Groups Projects
Commit 97bc7bf4 authored by 심재엽's avatar 심재엽
Browse files

refactor: 참가자 퇴장시 채팅방 메시지 추가

parent 24f17af4
No related branches found
No related tags found
1 merge request!43배포코드 master브랜치로
......@@ -620,6 +620,15 @@ class MeetingService {
chatRoom.isOnline.delete(user.name);
chatRoom.lastReadAt.delete(user.name);
chatRoom.lastReadLogId.delete(user.name);
const leaveMessage = {
message: `${user.name}님이 퇴장했습니다.`,
timestamp: new Date(),
type: 'leave'
};
chatRoom.messages.push(leaveMessage);
await chatRoom.save();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment