fix: cursor appears on placeholder message

This commit is contained in:
Danny Avila 2023-03-28 15:32:22 -04:00
parent 95e9f05688
commit 2a16a64612

View file

@ -69,7 +69,7 @@ const useMessageHandler = () => {
// construct the placeholder response message
const initialResponse = {
sender: chatGptLabel || model,
text: '',
text: '<span className="result-streaming">█</span>',
parentMessageId: isRegenerate ? messageId : fakeMessageId,
messageId: (isRegenerate ? messageId : fakeMessageId) + '_',
conversationId,