This commit is contained in:
yj 2024-08-21 18:01:53 +08:00
parent c4c280606d
commit 0b9ec70696
1 changed files with 13 additions and 0 deletions

View File

@ -366,6 +366,19 @@ const Meeting: React.FC = () => {
} else {
message.success(`管理员${item.user.isRoomManager ? '设置' : '取消'}${item.user.userName}为发言人`)
}
if (!item.user.isRoomManager) {
setRoomUserList((list: any) => {
let row = list.filter((i: any) => i.roleId === '1' || i.isRoomManager)
setCurrentLookUserAccount((res: any) => {
let has = row.find((x: any) => x.uid === res.uid)
if (!has) {
renderVideo(row[0].uid)
}
return res
})
return list
})
}
})
break;
// 申请发言哦