Update Conversations.tsx
This commit is contained in:
@@ -135,12 +135,16 @@ export default function Conversations() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toast.remove(connectingToast);
|
toast.remove(connectingToast);
|
||||||
|
toast.success("joined room");
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleLeaveLive = async (conversationId: string) => {
|
const handleLeaveLive = async (conversationId: string) => {
|
||||||
const leavingToast = toast.loading("leaving");
|
const leavingToast = toast.loading("leaving");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// agora leave channel
|
||||||
|
await handleLeaveChannel();
|
||||||
|
|
||||||
await conversationService.leaveLiveConversation(
|
await conversationService.leaveLiveConversation(
|
||||||
conversationId,
|
conversationId,
|
||||||
currUser!.uid
|
currUser!.uid
|
||||||
@@ -150,6 +154,7 @@ export default function Conversations() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toast.remove(leavingToast);
|
toast.remove(leavingToast);
|
||||||
|
toast.success("left room");
|
||||||
};
|
};
|
||||||
|
|
||||||
// agora start the call stream
|
// agora start the call stream
|
||||||
|
|||||||
Reference in New Issue
Block a user