diff --git a/src/App.tsx b/src/App.tsx index 5b2f692..9b36760 100644 --- a/src/App.tsx +++ b/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 {