From 067408f1040ed5b63d0dffaef6b32a84a7f03b3d Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Mon, 7 Feb 2022 22:07:29 -0800 Subject: [PATCH] Update Conversations.tsx --- packages/web/components/MainTabsOrPages/Conversations.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/web/components/MainTabsOrPages/Conversations.tsx b/packages/web/components/MainTabsOrPages/Conversations.tsx index e5fb38c..462d921 100644 --- a/packages/web/components/MainTabsOrPages/Conversations.tsx +++ b/packages/web/components/MainTabsOrPages/Conversations.tsx @@ -135,12 +135,16 @@ export default function Conversations() { } toast.remove(connectingToast); + toast.success("joined room"); }; const handleLeaveLive = async (conversationId: string) => { const leavingToast = toast.loading("leaving"); try { + // agora leave channel + await handleLeaveChannel(); + await conversationService.leaveLiveConversation( conversationId, currUser!.uid @@ -150,6 +154,7 @@ export default function Conversations() { } toast.remove(leavingToast); + toast.success("left room"); }; // agora start the call stream