Skip to content

Commit

Permalink
Join notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Jithin KS authored and Jithin KS committed Sep 29, 2021
1 parent 1863309 commit c705715
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Collaboration.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ function Collaboration() {
goBack,
hostAddress,
});
notifyJoined();
console.log(fabricJSON, currentMembers);
setCanvas(fabricJSON);
setMembers(currentMembers);
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c705715

Please sign in to comment.