Set data channel in state.

This commit is contained in:
aforge
2023-01-18 14:10:49 -08:00
parent 9108efc8c9
commit b766e827c9
7 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ class CallPanel extends React.PureComponent {
channel.onopen = this.handleDataChannelOpen;
channel.onclose = this.handleDataChannelClose;
this.setState({pc: pc, waitingForPeer: false});
this.setState({pc: pc, dataChannel: channel, waitingForPeer: false});
return pc;
}
+1
View File
@@ -10950,6 +10950,7 @@ class CallPanel extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureCompon
channel.onclose = this.handleDataChannelClose;
this.setState({
pc: pc,
dataChannel: channel,
waitingForPeer: false
});
return pc;
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long