Push-to-talk does not clear the away status, the unmute button does

Author: antobinaryCreated Sep 29, 2026Updated Sep 29, 2026
Labelsmodule: client

Describe the bug

A user who is set as away and then talks using push-to-talk (holding M) stays marked as away. Their microphone opens and they are heard, but the away status is never removed, neither while the key is held nor after it is released.

Unmuting with the microphone button in the same situation does remove the away status, and the button says so: its label while away is "Unmute and set yourself active".

So the two ways of unmuting disagree, and a participant can be talking in the session while everyone else still sees them as away.

To Reproduce

  1. Join a meeting with a microphone. Push-to-talk enabled (Settings, Application, "Push to talk"; on by default in 4.0, off by default in 3.0).
  2. Set yourself as away (4.0: Profile panel, Status, "Away").
  3. With the keyboard focus outside of any text field, hold M, talk, release M.
  4. Look at your status, or at the public chat from another participant's view.
  5. Now click the unmute button.

Expected behavior

Push-to-talk removes the away status, the same way the unmute button does. Talking means the user is back.

Actual behavior

The away status survives push-to-talk. It is only removed by step 5.

Scripted run on 4.0, two participants (the speaker and an observer). The away flag is read from the user table of bbb_graphql, the label from the speaker's microphone button, the chat from the observer's public chat.

Step user.away Microphone Speaker's mic button label Observer's public chat
Joined, muted false muted Unmute
Set away true muted Unmute and set yourself active "Speaker is away"
Holding M true live Mute no new message
Released M true muted Unmute and set yourself active no new message
Clicked unmute false live Mute "Speaker is available"

Result: FAIL, reproduced in 4 runs out of 4.

Same outcome when the user is unmuted at the moment they go away (going away mutes them, push-to-talk then opens the microphone and leaves them away).

BBB version

  • Reported on 3.0.37.
  • Confirmed on 4.0: 4.0.0-rc.2 based build of v4.0.x-develop (bbb-html5 at 60217bd717, 2026-09-11).
  • The code involved is the same on v3.0.37, v3.0.x-develop and the current v4.0.x-develop (d094095e2a). 3.0 was checked by reading the code, not by running it.

Environment

Desktop

  • OS: Linux
  • Browser: Chromium
  • Version: 141

Additional context

Both paths live in bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/muteToggle.tsx.

The button click handles the away status before toggling the microphone:

typescript
const onClickCallback = (e: React.MouseEvent<HTMLButtonElement>) => {
  e.stopPropagation();

  if (muted) {
    if (away) {
      if (!noInputDevice) muteAway(muted, true, toggleVoice);
      VideoService.setTrackEnabled(true);
      setAway({
        variables: {
          away: false,
        },
      });
    } else if (noInputDevice) {
      ...
    }
  }

  toggleMuteMicrophone(muted, toggleVoice);
};

The push-to-talk key handler only toggles the microphone:

typescript
if (action === 'down' && !isKeyDown.current) {
  if (mediaInterrupted) return;

  isKeyDown.current = true;
  startPushToTalk(toggleVoice);   // service.ts: toggleMute(true, toggleVoice)
}

Nothing on the server side ties the away status to the mute state, ChangeUserAwayReqMsg is only sent by the client, so the away status stays until something else clears it.

Two more consequences follow from the same code. They were not tested:

  • Going away disables the user's webcam track (VideoService.setTrackEnabled(false) in muteAway). Push-to-talk does not enable it again, the button click does.
  • With public.media.muteAudioOutputWhenAway: true, going away sets the speaker level to 0. Push-to-talk does not restore it, so the user would talk without hearing the answer.

Note for the fix: handlePushToTalk is a useCallback with [mediaInterrupted] as its dependencies, so it would read a stale away unless away is added to the dependencies or read through a ref.

The Toggle mute shortcut is not affected. It goes through the button's accessKey, so it runs the click handler.

Push-to-talk was added in #21032, the away handling of the button in d1bb7b685e. Other open push-to-talk issues: #25622, #25625.

Source: bigbluebutton/bigbluebutton