diff --git a/src/components/Collaboration.js b/src/components/Collaboration.js index 51e84a7..ecbcb07 100644 --- a/src/components/Collaboration.js +++ b/src/components/Collaboration.js @@ -151,6 +151,7 @@ function Collaboration() { goBack, hostAddress, }); + notifyJoined(); console.log(fabricJSON, currentMembers); setCanvas(fabricJSON); setMembers(currentMembers); @@ -314,6 +315,10 @@ function Collaboration() { showToast(`You are the host now`, "success"); }; + const notifyJoined = () => { + showToast(`Joined the room`, "success"); + }; + const showToast = (title, status) => { toast({ title,