From 5d90e5c415c9749e321fbb134437d44679aea632 Mon Sep 17 00:00:00 2001 From: lezi-fun <177434121+lezi-fun@users.noreply.github.com> Date: Mon, 10 Aug 2026 10:21:26 +0800 Subject: [PATCH] fix: hide DM button when logged out --- components/chat/ChatManager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/chat/ChatManager.js b/components/chat/ChatManager.js index 4b971e6..94d117d 100644 --- a/components/chat/ChatManager.js +++ b/components/chat/ChatManager.js @@ -24,6 +24,8 @@ export function DMButton() { return () => clearInterval(t); }, [currentUser]); + if (!currentUser) return null; // 未登录不显示私信按钮 + return (