This commit is contained in:
yj 2024-08-07 16:17:22 +08:00
parent 4b2971c380
commit 89679ccf00
1 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ const Meeting: React.FC = () => {
const getShowUser = async (): Promise<void> => {
await GetShowUser(state.channelId).then(async (res) => {
if (res.code === 200 && res.data) {
let userItem = allUserListArr.find((item: any) => item.uid === res.data)
let userItem = allUserListArr.find((item: any) => item.uid === res.data || item.screenShareId === res.data)
currentLookUserAccountId = res.data
setCurrentLookUserAccount(userItem)
if (res.data === userInfo.uid) {
@ -522,7 +522,7 @@ const Meeting: React.FC = () => {
});
allUserListArr = res[0].data
if (currentLookUserAccountId) {
let userItem = allUserListArr.find((item: any) => item.uid === currentLookUserAccountId)
let userItem = allUserListArr.find((item: any) => item.uid === currentLookUserAccountId || item.screenShareId === currentLookUserAccountId)
setCurrentLookUserAccount(userItem)
}
setAllUserList(res[1].data.items);