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

refactor: 번개모임 참가시 채팅방에 참가 메시지 기록

parent 8bde8749
No related branches found
No related tags found
1 merge request!43배포코드 master브랜치로
......@@ -300,9 +300,18 @@ class MeetingService {
name: user.name,
fcmTokens: userFcmTokens, // FCM 토큰 추가
});
chatRoom.isOnline.set(user.name, true);
chatRoom.isOnline.set(user.name, false);
chatRoom.lastReadAt.set(user.name, new Date());
chatRoom.lastReadLogId.set(user.name, null);
const joinMessage = {
message: `${nickname}님이 참가했습니다.`,
timestamp: new Date(),
type: 'join'
};
chatRoom.messages.push(joinMessage);
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