Skip to content

Commit 5e76697

Browse files
authored
Set PTT mode on call correctly (#2445)
And not always to true. This was causing audio & video to start muted sometimes on normal calls because the ICE connection state would change to 'checking', causing the feeds to be muted.
1 parent 34ef7bc commit 5e76697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webrtc/groupCall.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ export class GroupCall extends TypedEventEmitter<GroupCallEvent, GroupCallEventH
611611
logger.log(`GroupCall: incoming call from: ${opponentMemberId}`);
612612

613613
// we are handlng this call as a PTT call, so enable PTT semantics
614-
newCall.isPtt = true;
614+
newCall.isPtt = this.isPtt;
615615

616616
// Check if the user calling has an existing call and use this call instead.
617617
if (existingCall) {
@@ -778,7 +778,7 @@ export class GroupCall extends TypedEventEmitter<GroupCallEvent, GroupCallEventH
778778
},
779779
);
780780

781-
newCall.isPtt = true;
781+
newCall.isPtt = this.isPtt;
782782

783783
const requestScreenshareFeed = opponentDevice.feeds.some(
784784
(feed) => feed.purpose === SDPStreamMetadataPurpose.Screenshare);

0 commit comments

Comments
 (0)