Skip to content

Commit

Permalink
Merge pull request #314 from sparcs-kaist/#313-bug-get-messages-from-…
Browse files Browse the repository at this point in the history
…other-rooms

[Bug] 다른 방 채팅 메시지도 수신
  • Loading branch information
14KGun authored Jul 20, 2023
2 parents 1312ab3 + 857d743 commit 48dbabf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const transformChatsForRoom = async (chats) => {
);
}
chatsToSend.push({
roomId: chat.roomId,
type: chat.type,
authorId: chat.authorId._id,
authorName: chat.authorId.nickname,
Expand All @@ -52,6 +53,7 @@ const transformChatsForRoom = async (chats) => {
inOutNames: chat.inOutNames,
});
}

return chatsToSend;
};

Expand Down

0 comments on commit 48dbabf

Please sign in to comment.