This commit is contained in:
parent
89679ccf00
commit
cf19a7890c
|
|
@ -293,9 +293,11 @@ 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 || item.screenShareId === res.data)
|
||||
currentLookUserAccountId = res.data
|
||||
setCurrentLookUserAccount(userItem)
|
||||
let userItem = allUserListArr.find((item: any) => item.uid === res.data || item.screenShareId === res.data)
|
||||
if (userItem) {
|
||||
setCurrentLookUserAccount(userItem)
|
||||
}
|
||||
if (res.data === userInfo.uid) {
|
||||
if (String(res.data).length === 9) {
|
||||
// 共享屏幕
|
||||
|
|
@ -521,8 +523,8 @@ const Meeting: React.FC = () => {
|
|||
}
|
||||
});
|
||||
allUserListArr = res[0].data
|
||||
if (currentLookUserAccountId) {
|
||||
let userItem = allUserListArr.find((item: any) => item.uid === currentLookUserAccountId || item.screenShareId === currentLookUserAccountId)
|
||||
let userItem = allUserListArr.find((item: any) => item.uid === currentLookUserAccountId || item.screenShareId === currentLookUserAccountId)
|
||||
if (userItem) {
|
||||
setCurrentLookUserAccount(userItem)
|
||||
}
|
||||
setAllUserList(res[1].data.items);
|
||||
|
|
|
|||
Loading…
Reference in New Issue