Update ConversationProvider.tsx

This commit is contained in:
talksik
2022-06-19 12:17:46 -05:00
parent 7bb37d0bcd
commit ee1ad5f592
@@ -489,6 +489,7 @@ function Room({
toast.dismiss(connectingToast);
// todo, take trickle into account to not overwrite stream
// notifying globally that we are in the process now
setConversationMap((draft) => {
if (draft[conversation._id.toString()]) {
@@ -568,6 +569,8 @@ function Room({
toast.success('NEWBIE JOINED!!!');
console.log('someone calling me', res);
// todo, take trickle into account to not overwrite prev peer
const peerForMeAndNewbie = new Peer({
initiator: false,
stream: userLocalStream,