This commit is contained in:
parent
4b2971c380
commit
89679ccf00
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue