Skip to content
Snippets Groups Projects
Unverified Commit 881c4bc4 authored by Sean Hatfield's avatar Sean Hatfield Committed by GitHub
Browse files

[FIX] Hide TTS and more actions on chat reset message (#1850)

hide TTS and more actions on chat reset message
parent 85e5866b
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ function ActionMenu({ chatId, forkThread, isEditing, role }) {
};
}, []);
if (isEditing || role === "user") return null;
if (!chatId || isEditing || role === "user") return null;
return (
<div className="mt-2 -ml-0.5 relative" ref={menuRef}>
......
......@@ -16,7 +16,7 @@ export default function TTSMessage({ slug, chatId, message }) {
getSettings();
}, []);
if (loading) return null;
if (!chatId || loading) return null;
if (provider !== "native")
return <AsyncTTSMessage slug={slug} chatId={chatId} />;
return <NativeTTSMessage message={message} />;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment