From 98c7267d07596bb04629135732310f8feb42742d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A7=80=EC=9B=90?= Date: Wed, 5 Feb 2025 23:25:35 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EC=9E=90=EB=8F=99,=20=EC=88=98?= =?UTF-8?q?=EB=8F=99=20=EB=A7=A4=EC=B9=AD=20bottomMenu=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chat/bottomMenu/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) { From ce69d1ffba7d81bb3718b9bf01bcb7a44bf6aa36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A7=80=EC=9B=90?= Date: Wed, 5 Feb 2025 23:25:50 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20MessageInput=20css=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/chat/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = () => { ) : ( -
+
메시지를 불러오는 중...
)}