This commit is contained in:
yj 2024-11-01 15:38:38 +08:00
parent eaf9b686f6
commit 302e2effb8
1 changed files with 10 additions and 21 deletions

View File

@ -1743,28 +1743,17 @@ const Meeting: React.FC = () => {
})
message.success('网络已连接。')
meetingDisconnectedRef.current.changeModal(false)
setRoomUserList((res: any) => {
let userItem = res.find((item: any) => item.uid === userInfo.uid)
if (userItem.isRoomManager) {
postRoomManager({
roomId: state.roomId,
roomNum: state.channelId,
userId: userInfo.uid
})
setIsNetworkDisconnected(bool => {
if (bool) {
allUserLook(userInfo.uid, userInfo.userName)
}
setIsNetworkDisconnected(bool => {
if (bool) {
allUserLook(userItem.uid, userItem.userName)
}
return false
})
setIsScreenCapture(bool => {
if (bool) {
allUserLook(userItem.screenShareId, userItem.userName)
}
return bool
})
return res
return false
})
setIsScreenCapture(bool => {
if (bool) {
allUserLook(userInfo.screenShareId, userInfo.userName)
}
return bool
})
}
break;