diff --git a/src/components/chat/bottomMenu/index.tsx b/src/components/chat/bottomMenu/index.tsx index 39bbdd3..4f0d6f7 100644 --- a/src/components/chat/bottomMenu/index.tsx +++ b/src/components/chat/bottomMenu/index.tsx @@ -54,10 +54,14 @@ const BottomMenu = ({ user ) { console.log(eventMessage); - setIsOwner(user.userId === eventMessage.message.roomMasterId); + if (isAutoMatchingChat) { + setIsOwner(user.userId === eventMessage.message.roomMasterId); + } else { + setIsOwner(true); + } } } - }, [messages, user]); + }, [messages, user, isAutoMatchingChat]); const handleSendClick = () => { if (!user?.accountNumber) { diff --git a/src/pages/chat/index.tsx b/src/pages/chat/index.tsx index 1f9e7a4..74e774e 100644 --- a/src/pages/chat/index.tsx +++ b/src/pages/chat/index.tsx @@ -29,7 +29,7 @@ const ChatPage = () => { ) : ( -
+
메시지를 불러오는 중...
)}