starting to make sure that we are accurate with flow of code and management
This commit is contained in:
@@ -42,8 +42,8 @@
|
|||||||
[
|
[
|
||||||
"@electron-forge/plugin-webpack",
|
"@electron-forge/plugin-webpack",
|
||||||
{
|
{
|
||||||
"port": "4002",
|
"port": "4005",
|
||||||
"loggerPort": "9002",
|
"loggerPort": "9005",
|
||||||
"mainConfig": "./webpack.main.config.js",
|
"mainConfig": "./webpack.main.config.js",
|
||||||
"devContentSecurityPolicy": "default-src * self blob: data: gap:; style-src * self 'unsafe-inline' blob: data: gap:; script-src * 'self' 'unsafe-eval' 'unsafe-inline' blob: data: gap:; object-src * 'self' blob: data: gap:; img-src * self 'unsafe-inline' blob: data: gap:; connect-src self * 'unsafe-inline' blob: data: gap:; frame-src * self blob: data: gap:;",
|
"devContentSecurityPolicy": "default-src * self blob: data: gap:; style-src * self 'unsafe-inline' blob: data: gap:; script-src * 'self' 'unsafe-eval' 'unsafe-inline' blob: data: gap:; object-src * 'self' blob: data: gap:; img-src * self 'unsafe-inline' blob: data: gap:; connect-src self * 'unsafe-inline' blob: data: gap:; frame-src * self blob: data: gap:;",
|
||||||
"renderer": {
|
"renderer": {
|
||||||
|
|||||||
@@ -537,6 +537,7 @@ function Room({
|
|||||||
localPeerConnection.on('close', () => {
|
localPeerConnection.on('close', () => {
|
||||||
// the person will be removed from the tuned in list, but the connections here are decoupled from that flow
|
// 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
|
// 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) => {
|
setConversationMap((draft) => {
|
||||||
if (draft[conversation._id.toString()].room[otherUserId]) {
|
if (draft[conversation._id.toString()].room[otherUserId]) {
|
||||||
@@ -635,6 +636,7 @@ function Room({
|
|||||||
peerForMeAndNewbie.on('close', () => {
|
peerForMeAndNewbie.on('close', () => {
|
||||||
// the person will be removed from the tuned in list, but the connections here are decoupled from that flow
|
// 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
|
// 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) => {
|
setConversationMap((draft) => {
|
||||||
if (draft[conversation._id.toString()].room[res.userWhoCalled]) {
|
if (draft[conversation._id.toString()].room[res.userWhoCalled]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user