Update ConversationProvider.tsx
This commit is contained in:
@@ -489,6 +489,7 @@ function Room({
|
|||||||
|
|
||||||
toast.dismiss(connectingToast);
|
toast.dismiss(connectingToast);
|
||||||
|
|
||||||
|
// todo, take trickle into account to not overwrite stream
|
||||||
// notifying globally that we are in the process now
|
// notifying globally that we are in the process now
|
||||||
setConversationMap((draft) => {
|
setConversationMap((draft) => {
|
||||||
if (draft[conversation._id.toString()]) {
|
if (draft[conversation._id.toString()]) {
|
||||||
@@ -568,6 +569,8 @@ function Room({
|
|||||||
toast.success('NEWBIE JOINED!!!');
|
toast.success('NEWBIE JOINED!!!');
|
||||||
console.log('someone calling me', res);
|
console.log('someone calling me', res);
|
||||||
|
|
||||||
|
// todo, take trickle into account to not overwrite prev peer
|
||||||
|
|
||||||
const peerForMeAndNewbie = new Peer({
|
const peerForMeAndNewbie = new Peer({
|
||||||
initiator: false,
|
initiator: false,
|
||||||
stream: userLocalStream,
|
stream: userLocalStream,
|
||||||
|
|||||||
Reference in New Issue
Block a user