This commit is contained in:
parent
810c68bc96
commit
d771aff700
36
src/App.tsx
36
src/App.tsx
|
|
@ -111,23 +111,25 @@ const App: React.FC = () => {
|
|||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
onOtherSignalr(async (item: any) => {
|
||||
switch (item.key) {
|
||||
case 'Invitation':
|
||||
window.electron.joinNotification({
|
||||
body: item.roomName,
|
||||
name: item.InviterName,
|
||||
})
|
||||
joinMeetingModalRef.current.changeModal(item)
|
||||
break;
|
||||
case 'ForceLogout':
|
||||
message.error(item.message)
|
||||
await leaveChannel(true)
|
||||
toSrc('/login')
|
||||
break;
|
||||
}
|
||||
})
|
||||
}, [navigate])
|
||||
setTimeout(() => {
|
||||
onOtherSignalr(async (item: any) => {
|
||||
switch (item.key) {
|
||||
case 'Invitation':
|
||||
window.electron.joinNotification({
|
||||
body: item.roomName,
|
||||
name: item.InviterName,
|
||||
})
|
||||
joinMeetingModalRef.current.changeModal(item)
|
||||
break;
|
||||
case 'ForceLogout':
|
||||
message.error(item.message)
|
||||
await leaveChannel(true)
|
||||
toSrc('/login')
|
||||
break;
|
||||
}
|
||||
})
|
||||
}, 3000);
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue