Skip to content

Commit

Permalink
Remove PTT 'other user speaking' logic (#2362)
Browse files Browse the repository at this point in the history
This was also in Element Call, and whilst js-=sdk might be a more
sensible place, EC has all the information to do it properly (this
impl didn't take admin talk-over into account).
  • Loading branch information
dbkr authored May 11, 2022
1 parent acef1d7 commit 38e54ae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/webrtc/groupCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,6 @@ export class GroupCall extends TypedEventEmitter<GroupCallEvent, GroupCallEventH

// set a timer for the maximum transmit time on PTT calls
if (this.isPtt) {
// if anoher user is currently unmuted, we can't unmute
if (!muted && this.userMediaFeeds.some(f => !f.isAudioMuted())) {
throw new OtherUserSpeakingError();
}

// Set or clear the max transmit timer
if (!muted && this.isMicrophoneMuted()) {
this.transmitTimer = setTimeout(() => {
Expand Down

0 comments on commit 38e54ae

Please sign in to comment.