File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"homepage" : " https://evgeny-nadymov.github.io/telegram-react" ,
3
3
"name" : " telegram_react" ,
4
- "version" : " 0.0.984 " ,
4
+ "version" : " 0.0.985 " ,
5
5
"private" : true ,
6
6
"dependencies" : {
7
7
"tdweb" : " ^1.7.2" ,
Original file line number Diff line number Diff line change @@ -1793,6 +1793,8 @@ class CallStore extends EventEmitter {
1793
1793
} ;
1794
1794
LOG_P2P_CALL ( 'p2pJoinCall currentCall' , this . currentCall ) ;
1795
1795
1796
+ const mediaState = this . p2pGetMediaState ( id , 'input' ) ;
1797
+
1796
1798
const inputStream = await navigator . mediaDevices . getUserMedia ( {
1797
1799
video : true ,
1798
1800
audio : true
@@ -2076,22 +2078,10 @@ class CallStore extends EventEmitter {
2076
2078
let candidate = data ;
2077
2079
if ( UNIFY_CANDIDATE ) {
2078
2080
data . candidates . forEach ( x => {
2079
- // if (x.type === 'local') {
2080
- // x.type = 'host';
2081
- // } else if (x.type === 'relay') {
2082
- // x.component = 1;
2083
- // x.relAddress = {
2084
- // ip: '0.0.0.0',
2085
- // port: 0
2086
- // }
2087
- // }
2088
-
2089
2081
candidate = P2PSdpBuilder . generateCandidate ( x ) ;
2090
2082
candidate . sdpMLineIndex = 0 ;
2091
2083
2092
- // if (x.type === 'relay') {
2093
- candidates . push ( candidate ) ;
2094
- // }
2084
+ candidates . push ( candidate ) ;
2095
2085
} ) ;
2096
2086
}
2097
2087
if ( candidates . length > 0 ) {
You can’t perform that action at this time.
0 commit comments