mirror of
https://github.com/pavlobu/deskreen.git
synced 2025-05-16 07:20:16 -07:00
fix reject connection bug
This commit is contained in:
parent
f3c914587f
commit
072c389b3e
@ -65,7 +65,6 @@ const ScanQRStep: React.FC = () => {
|
|||||||
);
|
);
|
||||||
if (roomId) {
|
if (roomId) {
|
||||||
setRoomID(roomId);
|
setRoomID(roomId);
|
||||||
clearInterval(getRoomIdInterval);
|
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
|
@ -174,6 +174,7 @@ const DeskreenStepper = React.forwardRef((_props, ref) => {
|
|||||||
setPendingConnectionDevice(null);
|
setPendingConnectionDevice(null);
|
||||||
setIsUserAllowedConnection(false);
|
setIsUserAllowedConnection(false);
|
||||||
|
|
||||||
|
ipcRenderer.invoke(IpcEvents.ResetWaitingForConnectionSharingSession);
|
||||||
ipcRenderer.invoke(IpcEvents.CreateWaitingForConnectionSharingSession);
|
ipcRenderer.invoke(IpcEvents.CreateWaitingForConnectionSharingSession);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
@ -186,14 +187,11 @@ const DeskreenStepper = React.forwardRef((_props, ref) => {
|
|||||||
ipcRenderer.invoke(IpcEvents.CreateWaitingForConnectionSharingSession);
|
ipcRenderer.invoke(IpcEvents.CreateWaitingForConnectionSharingSession);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
React.useImperativeHandle(ref, () => ({
|
|
||||||
handleReset() {
|
|
||||||
handleResetWithSharingSessionRestart();
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
const handleCancelAlert = async () => {
|
const handleCancelAlert = async () => {
|
||||||
setIsAlertOpen(false);
|
setIsAlertOpen(false);
|
||||||
|
setActiveStep(0);
|
||||||
|
setPendingConnectionDevice(null);
|
||||||
|
setIsUserAllowedConnection(false);
|
||||||
|
|
||||||
ipcRenderer.invoke(IpcEvents.ResetWaitingForConnectionSharingSession);
|
ipcRenderer.invoke(IpcEvents.ResetWaitingForConnectionSharingSession);
|
||||||
ipcRenderer.invoke(IpcEvents.CreateWaitingForConnectionSharingSession);
|
ipcRenderer.invoke(IpcEvents.CreateWaitingForConnectionSharingSession);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user