Commit e63942da by qlintonger xeno

眼镜端修复+1

parent b6475442
......@@ -330,21 +330,21 @@ export class AgoraHandle {
chatChannelState.value.screenCaptureShotURL = msgData.msgData.url;
break
}
case 'Image':
case 'File':
{
console.log('收到ws眼镜端消息点', msgData)
// msgData.msgData.tip = {
// fileSize: 0,
// fileType: 'video',
// fileUrl: msgData.msgData.tip,
// fileName: msgData.msgData.tip.slice(msgData.msgData.tip.lastIndexOf('/') + 1)
// }
// addMessageItemInMeeting(msgData);
const msgType = msgData.msgData.tip.endsWith('.mp4') ? 'ChatVideo' :
['.jpg', '.png', '.jpeg'].some(a=>msgData.msgData.tip.endsWith(a)) ? 'ChatImage' :
'ChatFile'
const msgDataWhich = {
fileSize: 0,
fileType: msgType === 'ChatVideo' ? 'video' : msgType === 'ChatImage' ? 'image' : 'file',
fileUrl: msgData.msgData.tip,
fileName: msgData.msgData.tip.slice(msgData.msgData.tip.lastIndexOf('/') + 1)
}
this.AnyRemote.sendRaw(
fromID, fromName, msgType
fromID, fromName, msgType, msgDataWhich, chatChannelState.value.chatChannelId, '-2'
)
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment