yangjie #33

Merged
yangqiang merged 22 commits from yangjie into master 2024-11-04 13:57:51 +08:00
1 changed files with 10 additions and 21 deletions
Showing only changes of commit 302e2effb8 - Show all commits

View File

@ -1743,29 +1743,18 @@ const Meeting: React.FC = () => {
}) })
message.success('网络已连接。') message.success('网络已连接。')
meetingDisconnectedRef.current.changeModal(false) 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 => { setIsNetworkDisconnected(bool => {
if (bool) { if (bool) {
allUserLook(userItem.uid, userItem.userName) allUserLook(userInfo.uid, userInfo.userName)
} }
return false return false
}) })
setIsScreenCapture(bool => { setIsScreenCapture(bool => {
if (bool) { if (bool) {
allUserLook(userItem.screenShareId, userItem.userName) allUserLook(userInfo.screenShareId, userInfo.userName)
} }
return bool return bool
}) })
return res
})
} }
break; break;
} }