Skip to content

Commit 1cad2d7

Browse files
author
Enrico Schwendig
committed
groupCall: rename property to allow no media calls
1 parent 53ec8e0 commit 1cad2d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ out
1919

2020
.vscode
2121
.vscode/
22+
.idea/

src/webrtc/groupCall.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class GroupCall extends TypedEventEmitter<
216216
public type: GroupCallType,
217217
public isPtt: boolean,
218218
public intent: GroupCallIntent,
219-
public readonly initCallWithoutVideoAndAudio: boolean,
219+
public readonly allowCallWithoutVideoAndAudio: boolean,
220220
groupCallId?: string,
221221
private dataChannelsEnabled?: boolean,
222222
private dataChannelOptions?: IGroupCallDataChannelOptions,
@@ -378,7 +378,7 @@ export class GroupCall extends TypedEventEmitter<
378378
// If is allowed to join a call without a media stream, then we
379379
// don't throw an error here. But we need an empty Local Feed to establish
380380
// a connection later.
381-
if (this.initCallWithoutVideoAndAudio) {
381+
if (this.allowCallWithoutVideoAndAudio) {
382382
stream = new MediaStream();
383383
} else {
384384
this.state = GroupCallState.LocalCallFeedUninitialized;

0 commit comments

Comments
 (0)