Skip to content

Commit

Permalink
Merge pull request #125 from Gamegoo-repo/fix/#124
Browse files Browse the repository at this point in the history
[Fix] my-message-broadcast-success 이벤트 채팅방 id 검사
  • Loading branch information
yyypearl authored Oct 14, 2024
2 parents ec51658 + 5486311 commit 50c30b0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/hooks/useChatMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ const useChatMessage = () => {
};

const handleMyMessage = (res: any) => {
const newMessage = res.data;
// 새로운 메시지 저장 (내가 쓴 메시지)
setNewMessage(newMessage);
if(res.data.
chatroomUuid
===currentChatUuid){
const newMessage = res.data;
// 새로운 메시지 저장 (내가 쓴 메시지)
setNewMessage(newMessage);
}
};

const handleSystemMessage = (res: any) => {
Expand Down

0 comments on commit 50c30b0

Please sign in to comment.