yangjie #22

Merged
yangqiang merged 99 commits from yangjie into master 2024-10-22 16:11:46 +08:00
3 changed files with 8 additions and 6 deletions
Showing only changes of commit 7020974f1a - Show all commits

View File

@ -113,11 +113,6 @@ function createWindow() {
mainWindow.focus();
}
const additionalData = { myKey: 'myValue' }
// 退出房间
app.on('will-quit', async (event) => {
await mainWindow.webContents.send('quitAndInstall');
});
app.on('ready', () => {
const gotTheLock = app.requestSingleInstanceLock(additionalData)
if (gotTheLock) {

View File

@ -21,7 +21,7 @@ const JoinSetting = forwardRef((_props: any, ref: any) => {
}
setJoinRoomSettingForm((res: any) => {
res.forEach((item: any, index: number) => {
if (index === 0) {
if (index === 0 && role.ID.includes(user.roleId)) {
agora.getAudioMediaList().then(res => {
item.active = res.ecordingList.length ? true : false
})

View File

@ -355,6 +355,13 @@ const Meeting: React.FC = () => {
time: changeCurrentSeconds(),
});
}, 1000)
// 首次加载图标更新
const firstFooterList = [...footerList]
firstFooterList[0][0].title = state.enableMicr ? '静音' : '解除静音'
firstFooterList[0][0].active = !state.enableMicr
firstFooterList[0][1].title = state.enableCamera ? '关闭视频' : '开启视频'
firstFooterList[0][1].active = !state.enableCamera
setFooterList(firstFooterList)
setTimeout(async () => {
const setting = await JSON.parse(storage.getItem('setting') as string);
const stateInfo = await JSON.parse(storage.getItem('stateInfo') as string);