Set data channel in state.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user