Commit 1e93dd2f by qlintonger xeno

通话数据问题准备修复+1

parent 3781da94
......@@ -99,12 +99,17 @@ export class AgoraHandle {
break;
}
handleCommonCall(msgData, toID, fromID)
if (!chatChannelState.value.currentChatters.includes(toID)) {
chatChannelState.value.currentChatters.push(toID)
toID.split(',').forEach(function(a) {
if (!chatChannelState.value.currentChatters.includes(a)) {
chatChannelState.value.currentChatters.push(a)
}
if (!chatChannelState.value.currentChatters.includes(fromID)) {
chatChannelState.value.currentChatters.push(fromID)
})
fromID.split(',').forEach(function(a) {
if (!chatChannelState.value.currentChatters.includes(a)) {
chatChannelState.value.currentChatters.push(a)
}
})
chatChannelState.value.channelInitiator = toID;
chatChannelState.value.currentState = CallState.callOut
break
......@@ -116,9 +121,11 @@ export class AgoraHandle {
break;
}
handleCommonCall(msgData)
if (!chatChannelState.value.currentChatters.includes(fromID)) {
chatChannelState.value.currentChatters.push(fromID)
fromID.split(',').forEach(function(a) {
if (!chatChannelState.value.currentChatters.includes(a)) {
chatChannelState.value.currentChatters.push(a)
}
})
chatChannelState.value.channelInitiator = fromID
toID.split(',')
.forEach(function (id) {
......@@ -375,7 +382,7 @@ export class AgoraHandle {
}
forceUpdateOnlineUsers() {
this.agoraApp.sendWSFromCall('0', 'GetCompanyUserList');
this.AnyRemote.sendWSFromCall('0', 'GetCompanyUserList');
}
async joinChatRoom() {
......
......@@ -28,10 +28,15 @@ import { storeToRefs } from 'pinia'
import { CallState } from 'AnyR/constants/chatChannelRelated'
import { useAnyR } from 'AnyR/index'
import useUserStore from '@/store/user'
import {onMounted} from 'vue'
const userStore = useUserStore()
const AnyR = useAnyR()
onMounted(function() {
AnyR?.agora.forceUpdateOnlineUsers();
})
const sendCallRequest = function (id: any) {
if (AnyR.agora) {
AnyR.agora.sendCallRequest(id)
......
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