diff --git a/native/chat/inner-robotext-message.react.js b/native/chat/inner-robotext-message.react.js --- a/native/chat/inner-robotext-message.react.js +++ b/native/chat/inner-robotext-message.react.js @@ -51,9 +51,9 @@ if (splitPart === '') { continue; } + const key = `text${keyIndex++}`; if (splitPart.charAt(0) !== '<') { const darkColor = activeTheme === 'dark'; - const key = `text${keyIndex++}`; result.push( ); + result.push(); } else if (entityType === 'c') { - result.push(); + result.push(); } else { result.push(rawText); } diff --git a/web/chat/robotext-message.react.js b/web/chat/robotext-message.react.js --- a/web/chat/robotext-message.react.js +++ b/web/chat/robotext-message.react.js @@ -77,8 +77,8 @@ if (splitPart === '') { continue; } + const key = `text${keyIndex++}`; if (splitPart.charAt(0) !== '<') { - const key = `text${keyIndex++}`; textParts.push( {decodeURI(splitPart)} @@ -90,9 +90,9 @@ const { rawText, entityType, id } = parseRobotextEntity(splitPart); if (entityType === 't' && id !== item.messageInfo.threadID) { - textParts.push(); + textParts.push(); } else if (entityType === 'c') { - textParts.push(); + textParts.push(); } else { textParts.push(rawText); }