Skip to content

Commit

Permalink
채팅완료
Browse files Browse the repository at this point in the history
  • Loading branch information
LBang98 committed Sep 10, 2024
1 parent fe852ba commit 2df981e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/friend-list/FriendList.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ export default function FriendList() {
timestamp: message.timestamp
}
]);

// 메시지 전송 후, loadMessages 함수 실행
if (oneFriend && oneFriend.chatRoomId) {
loadMessages(oneFriend.chatRoomId);
}
}
};

Expand Down Expand Up @@ -174,7 +179,9 @@ export default function FriendList() {
...prevMessages,
{ senderId: userData.user_id, content: messageContent, timestamp: new Date().toISOString() }
]);

}

}

// 초대 수락 핸들러
Expand Down

0 comments on commit 2df981e

Please sign in to comment.