From c70571591451df2102eb61bfa2ff113fdd3015df Mon Sep 17 00:00:00 2001 From: Jithin KS Date: Wed, 29 Sep 2021 12:45:30 +0530 Subject: [PATCH] Join notification --- src/components/Collaboration.js | 5 +++++ 1 file changed, 5 insertions(+) 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,