fix(MessageEnter): 修正音频消息内容处理逻辑
修复音频消息发送时内容处理不正确的问题,直接使用filePath而不是从中提取url
This commit is contained in:
@@ -124,7 +124,7 @@ const MessageEnter: React.FC<MessageEnterProps> = ({ contract }) => {
|
||||
msgType,
|
||||
content: [FileType.AUDIO].includes(fileType)
|
||||
? JSON.stringify(filePath)
|
||||
: (filePath as { url: string; durationMs: number }).url,
|
||||
: filePath,
|
||||
};
|
||||
sendCommand("CmdSendMessage", params);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user