diff --git a/client/web/src/components/ChatBox/ChatMessageList/Item.tsx b/client/web/src/components/ChatBox/ChatMessageList/Item.tsx index 816051d6f13..ab2d585b8cd 100644 --- a/client/web/src/components/ChatBox/ChatMessageList/Item.tsx +++ b/client/web/src/components/ChatBox/ChatMessageList/Item.tsx @@ -75,6 +75,10 @@ const NormalMessage: React.FC = React.memo((props) => { }, }); + // 禁止对消息进行操作,因为此时消息尚未发送到远程 + const disableOperate = + payload.isLocal === true || payload.sendFailed === true; + return (
= React.memo((props) => {
{/* 操作 */} -
- -
- -
-
+ +
+ +
+
- -
- -
-
-
+ +
+ +
+
+ + )} ); });