[FIX] Hide TTS and more actions on chat reset message (#1850)
hide TTS and more actions on chat reset message
This commit is contained in:
parent
85e5866be6
commit
881c4bc4de
@ -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} />;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user