@@ -425,7 +425,7 @@ const beforeRead = (file) => {
return true;
};
-// 创建呼叫:开启语音电话
+// 创建呼叫:开启语音电话: 调试用,正式逻辑读src/views/im/hook/messagesHook.js
const startAudioOnline = async () => {
showVoiceCall.value = true;
// 初始化webrtc连接
@@ -197,8 +197,7 @@ export const handleMessageHook = (message, state) => {
// 创建呼叫:开启语音电话
-const startAudioOnline = (video) => {
- showVoiceCall.value = true;
+const startAudioOnline = (video) => {
rtcStore.initConnection(true);