You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23,34 +18,17 @@ export function RoomSharingDialog({ open, onOpenChange, link }: { open: boolean,
23
18
}
24
19
};
25
20
26
-
conststopSession=()=>{
27
-
startTransition(async()=>{
28
-
try{
29
-
if(!roomLink){
30
-
toast.error("Invalid room link.");
31
-
return;
32
-
}
21
+
consthandleStopSession=()=>{
22
+
console.log('handleStopSession clicked')
23
+
constconfirmed=window.confirm(
24
+
"Stopping the session will overwrite your previous, locally stored drawing. Are you sure?\n\n(If you want to keep your local drawing, simply close the browser tab instead.)"
25
+
);
33
26
34
-
constroomName=roomLink.split('/').pop();
35
-
if(!roomName){
36
-
toast.error("Room name is missing from the link.");
0 commit comments