starting to make sure that we are accurate with flow of code and management

This commit is contained in:
talksik
2022-06-19 12:47:59 -05:00
parent 2642224bb6
commit a90da3f4b9
2 changed files with 4 additions and 2 deletions
@@ -537,6 +537,7 @@ function Room({
localPeerConnection.on('close', () => {
// the person will be removed from the tuned in list, but the connections here are decoupled from that flow
// we want to manage the room within the master conversation and remove it for ourselves
// !this is false, see unmount, we are relying on tuned list for disconnections
setConversationMap((draft) => {
if (draft[conversation._id.toString()].room[otherUserId]) {
@@ -635,6 +636,7 @@ function Room({
peerForMeAndNewbie.on('close', () => {
// the person will be removed from the tuned in list, but the connections here are decoupled from that flow
// we want to manage the room within the master conversation and remove it for ourselves
// !this is false, see unmount, we are relying on tuned list for disconnections
setConversationMap((draft) => {
if (draft[conversation._id.toString()].room[res.userWhoCalled]) {