VoiceOver and TalkBack read every native avatar on their own, even where
the name is shown right next to it, and the web change left native out.
Give the native StatelessAvatar the same behaviour: decorative by
default, and announced with the person's name only where a caller sets
accessibilityAnnounceName, so both platforms follow one rule.
The pre-join preview shows the participant's avatar with alt="avatar"
when the camera is off, so screen reader users hear a generic word
instead of who the picture shows. An external WCAG 2.2 AA audit of a
JaaS embed flagged this (1.1.1 Non-text Content).
Avatars stay decorative by default, because nearly every other place
renders the name right next to them and would otherwise read it twice.
The pre-join preview opts in with accessibilityAnnounceName, and the
same name is used for the picture, the initials and the icon fallback,
so what is announced does not depend on whether the picture loaded.
* fix(recording): preselect a storage service that is actually offered
The record & transcribe dialog computed its default storage service
without the constraints the storage selector applies: while a live
stream runs, or without the recording JWT feature, the file recordings
service and Dropbox are not offered. With the recording service enabled
the default stayed recording-service while the selector showed local
recording (the first option), so pressing Start started a Jibri file
recording instead of the local one the user saw.
Compute the offered services in one helper used by both the dialog and
its content, pick the default among them, and recompute it whenever the
selection stops being offered while no recording runs (e.g. a live
stream starts while the dialog is open).
Starting transcription on its own no longer depends on the storage
selection: it always goes through setRequestingSubtitles. Previously it
only did so when the recording service was selected, which is what kept
transcription working during a live stream; with local recording now
preselected there it would have only written the room metadata.
Follow-up to #17732.
* fix(recording): only request recording in metadata for a file recording
Starting transcription on its own passed isRecordingRequested=true
whenever any recording ran, including a local one. A local recording is
never announced through the room metadata, so remote participants saw
isRecordingRequested flip to true, waited for a file recording session
that never came, and never showed the transcription start notification.
Set it only when a file recording is started or already active.
* feat(recording): disable starting transcription while subtitles are transcribed
When a transcriber is in the meeting only for the subtitles, a recorder
transcription cannot be started on top of it: the dialog still offered
Start transcription, but nothing happened. Disable it, and the start
both button, in that case, with a tooltip on web saying transcription is
already on, and do not start transcription along with the recording when
auto transcribe on record is on.
* fix(recording): announce recording started from the suggestion notification
With autoTranscribeOnRecord, starting the recording from the suggestion
notification requested the subtitles without forcing the metadata
update, so the room metadata was only written with async transcription
on. Without it, and whenever a transcriber was already in the meeting,
remote participants got no recording start notification.
Force the metadata update like the dialog and the external API do, only
auto transcribe when no transcriber is in the meeting yet, and keep a
running transcription in the metadata when only recording is announced.
* test(recording): cover the dialog during a live stream and with a subtitles transcriber
- local recording is preselected while a live stream runs, including
when the live stream starts while the dialog is open;
- Start transcription and Start both are disabled, with a tooltip,
while a transcriber is in the meeting only for the subtitles;
- starting transcription during a local recording does not set
isRecordingRequested in the room metadata a remote participant sees.
* test(recording): wait for the tooltip text, not just the tooltip element
The tooltip fades in: it is in the DOM before it is visible, and
getText() returns an empty string for it until then.
* fix(recording): clear the transcription flag when inviting the transcriber fails
When starting transcription, the recording room metadata gets
isTranscribingEnabled before the transcriber is invited. If inviting it
failed the flag stayed set, so remote participants kept waiting for the
transcription and never got the notification about a recording started
along with it.
Clear the flag on failure, keeping the rest of the recording metadata.
On the receiving side, the flag cleared with no transcriber in the
meeting is a failed start rather than a stop: stop waiting for the
transcription, so the recording start is still notified, and do not
notify a transcription stop.
* test(recording): cover a failed transcriber invite when starting recording and transcription
The transcription flag is cleared while the recording stays requested,
and the remote participant stops waiting for the transcription and gets
the recording-only start notification once the file recording is on.
* test(recording): wait for Start both to be enabled
The dialog keeps it disabled while validating the Dropbox token, on
deployments with Dropbox enabled.
* fix(subtitles): clear the transcription flag without waiting for the metadata echo
When inviting the transcriber fails before the server has echoed back
the metadata update requesting it, the local copy of the metadata does
not have isTranscribingEnabled set yet, so the flag was not cleared.
Re-apply what the request wrote instead: isRecordingRequested when a
recording was requested along with it, and isTranscribingEnabled off.
* fix(recording): do not validate an empty Dropbox token
mapStateToProps maps a missing Dropbox token to '', so the dialog
validated it against the Dropbox API on every open, which fails, and
kept the start buttons disabled until the request came back.
* fix(recording): notify a transcription stop when the transcriber left first
The recording metadata listener treated the transcription flag cleared
with no transcriber in the meeting as a failed start. A normal stop can
also look like that, when TRANSCRIBER_LEFT arrives before the metadata
update, and its stop notification was then suppressed.
Only treat it as a failed start while a start is still waiting for the
transcription, or after inviting the transcriber failed on this client.
* fix(subtitles): clear the transcription flag from the latest metadata
After a failed transcriber invite, the error handler re-applied the
recording request it was made with, so a recording stopped while the
invite was pending was requested again.
Build the update from the latest metadata instead, only turning
isTranscribingEnabled off. When the metadata update requesting the
transcription has not been echoed back yet, wait for that echo first.
* test(recording): cover a cancelled recording and a stop after the transcriber left
- a failed transcriber invite does not restore a recording request
cancelled while the invite was pending;
- a transcription stop is notified when the transcriber left before the
transcription flag was cleared.
* fix(recording): stop waiting for a recording cancelled before it started
When the recording request was withdrawn before any file recording
session existed, e.g. stopped while the transcriber invite was pending,
remote participants kept a start intent waiting for that recording, and
a later start would not be announced correctly. They also notified a
stop for a recording that never started.
Treat it like a failed transcription start: drop the recording from the
pending start, and do not notify a recording stop.
* test(recording): check a cancelled recording leaves nothing pending
The remote participant stops waiting for the recording and notifies no
recording stop.
* test(recording): wait for the previous test's recording stopped notification to go away
The previous test's cleanup stops its fake recording, which the remote
participant notifies. That notification was still shown when the check
that a cancelled recording notifies no stop ran.
* test(recording): skip the transcriber invite failure tests with async transcription
With async transcription the client does not invite the transcriber
itself, so there is no invite that can fail.
* refactor(recording): decide auto transcription on record in one place
shouldAutoTranscribeOnRecord() now also answers no while a transcriber is in
the meeting, for the subtitles or for a running transcription, since it cannot
be started again. The suggestion notification and the dialog no longer repeat
that check with their own formulas.
* refactor(recording): decide the dialog state in a single model
getRecordingDialogModel() in dialogModel.ts now computes everything the
recording & transcription dialog decides, from the redux facts and the
dialog's own state: the services offered and the one selected, whether each
section and the footer are shown, what is running, whether each start button
is enabled and why not (a blocker, which the web content turns into a
tooltip when there is an explanation for the user).
The dialog builds the model and applies it in its handlers, the content
renders it. The content no longer derives any of those decisions from redux
on its own, so the dialog and its content cannot disagree, and the web and
native contents no longer repeat the start-both and start-transcription
rules.
* fix(recording): invite the transcriber when starting it with a local or Dropbox recording
Starting transcription along with a local or a Dropbox recording only wrote
isTranscribingEnabled to the room metadata: nothing requested the
transcriber, so remote participants waited for a transcription that never
came. Requesting the subtitles now invites it whatever recording starts with
it, and writes the metadata the same way for every storage service.
A local recording also no longer seeds the start intent: it is not a file
recording session, the coordinator could never resolve it, and the local
recording middleware notifies about it on its own.
* fix(recording): sign out of Dropbox only when the user picks another service
The content signed out whenever the selected service moved away from Dropbox,
including when the dialog re-picked it on its own because the services offered
changed (a live stream started, another moderator started a session). A signed
in user lost the stored token without touching anything. The sign-out now
happens in the service change handler, with the user's choice.
* fix(recording): do not block Start both on a running transcription's reason
With a recorder transcription running and end-to-end encryption turned on
meanwhile, Start both only starts the recording, yet it was disabled with the
E2EE reason. A transcription blocker now only counts while no transcription
runs, as the recording one already did.
* fix(subtitles): clear the transcription flag reliably after a failed invite
Waiting for the echo of the metadata update compared the local copy by
identity, so any other metadata update arriving first ended the wait on a copy
without the flag, and the echo then left it set. The wait now ends when the
flag shows up in the local copy, whatever arrives before it, and when nothing
sets it in time the flag is cleared anyway instead of staying set for the
remote participants.
* fix(recording): do not take a stop for a cancelled start after the session was on
A recording request withdrawn with a start intent still pending and no active
file session counted as a start cancelled before it began, which silenced the
stop notification. A start intent can stay pending after the session was on,
e.g. while waiting for an initiator jicofo never delivers, and the session's
off update can arrive before the metadata update: a real stop then went
unnoticed. The intent now records that its session was seen on, and only a
start without that counts as cancelled.
* docs(recording): describe the service kept while a recording runs accurately
The selection kept while a recording runs is the service whose options are
shown, not necessarily the one recording: the dialog opens on the default
service whatever runs, as it did before.
* refactor(recording): take the auto transcription decision from the selector alone
The model repeated the conditions shouldAutoTranscribeOnRecord() already
folds in, so a change to the selector would have silently diverged from the
dialog.
* refactor(recording): validate the Dropbox token unconditionally on mount
mapStateToProps maps a missing token to '', and _onTokenUpdated() handles
that itself, so the undefined check on mount was dead and read as if an
undefined token were a real state.
* test(recording): join once per live stream describe and scope the tooltip lookup
Every test of the live stream describe rejoined the conference its setup had
already joined; the fake live stream is now ended after each test instead,
with no side effect. The tooltip lookup matched any popover on the page; it
now looks for the one repeating the button's description.
* docs(recording): describe the live stream spec's config and support flag
The inner functions of the subtitles middleware got theirs along with the
rewrite of the metadata echo wait.
* fix(subtitles): clear the transcription flag from what the participant asked for
After a failed transcriber invite the flag was cleared from the local copy of
the room metadata, which only reflects a write once the server echoed it back.
Depending on the timing of that echo the clear either waited for the flag to
show up, and then cleared the next transcription started within ten seconds,
or restored a recording request the participant had withdrawn meanwhile.
The clear now happens at once, with isRecordingRequested taken from the redux
state: a file recording on or requested and not stopped since. The server
applies the updates in order, so it lands after the request whether or not
the echo arrived.
* fix(recording): keep recordingStarted when a failed transcription rewrites the intent
Rewriting the start intent after a failed transcriber invite dropped the
recordingStarted flag, so a recording whose session was already on looked
like one that never started: a later stop whose off update arrived before the
metadata echo was then taken for a cancelled start and went unnoticed.
* refactor(recording): move the dialog model into functions.ts
The dialog model, its facts and blockers now live with the other recording
selectors instead of in a file of their own next to the dialog components.
* fix(visitors): deduplicate promotion requests by visitor JID
* fix(visitors): keep a visitor's place when its promotion request is updated
---------
Co-authored-by: damencho <[email protected]>
* fix(i18n): map region language codes to their day.js locales
* fix(i18n): match day.js locales case-insensitively
* fix(transcribing): map region language codes to their BCP-47 tags
The popup with the extra join buttons renders as a modal dialog that
receives focus when it opens, but nothing labelled it, so screen readers
announced an anonymous "dialog". Reuse the arrow's "Join options" label
so users hear where they landed.
The arrow next to "Join meeting" was labelled "Join without audio", the
caption of one item inside the popup it opens. Screen reader users heard
an action that pressing the arrow does not perform, and with
hideExtraJoinButtons set to hide that item the label named an option that
was not even shown. Call it "Join options", which is what it opens.
The arrow next to "Join meeting" opens a popup with the extra join
buttons, but it exposed aria-pressed, so screen readers announced it as
a toggle button and never said whether the popup was open. Expose
aria-expanded following the popup state instead, with aria-haspopup set
to "dialog", which is what the Popover renders (WCAG 4.1.2 Name, Role,
Value; reported by a JaaS customer's accessibility audit).
While the "Join meeting" button is disabled (empty name, joining in
progress, or no unsafe-room consent yet) it kept tabindex="0", so
keyboard users stopped on a control that did nothing. A WCAG 2.2 AA
audit of a JaaS embed rated this High (2.4.3 Focus Order). Give the
button and its options arrow tabindex="-1" while disabled.
* fix(google-api): wait for the Google Identity script and reject when loading fails
* fix(google-api): track each library load and surface failures to callers
* fix(google-api): retry explicitly and only flag real load failures
The sentence was finished by the line that moved the desktop Close
button, which the previous commit removed. Make it a complete sentence
about the mobile heading so the remaining comment stands on its own.
In the Settings dialog on desktop the Close (X) button is shown at the
top-right but rendered right after the tab panels, so keyboard users
reach it between the tab content and Cancel/OK. An external WCAG 2.2 AA
audit of a JaaS embed flagged this as a focus-order issue (2.4.3): the
button is expected after the footer buttons, not in the middle.
Render the button after the footer instead. CSS still places it at the
top-right, and Tab from a selected tab still leads straight into its
panel, which is what the original placement was meant to preserve.
The sidebar of DialogWithTabs had tabindex="0" (added in #15869 so a
screen reader would read the dialog title before the tabs), which made
the whole tab list an extra focus stop before the selected tab (WCAG
2.4.3 Focus Order; reported by a JaaS customer's accessibility audit).
Only the selected tab needs to be in the tab order: the tabs already
move focus between themselves with the arrow keys, and screen readers
announce the tab list's label when focus lands on a tab, so the title
is still read out.
* feat(polls): let the creator or a moderator close a poll
The End poll button is behind showEndPollButton in config.js, off by default,
since it needs the updated mod_polls_component. Visitor nodes learn about a
close from the main prosody and converge on its results.
* fix(polls): confirm ending a poll, test the visitor node paths
- Ending a poll asks for confirmation first, from one useClosePoll hook used
by the voting form and the results on web and native.
- A refused close or vote shows a notification (lib-jitsi-meet rejects
closePoll/answerPoll on the polls component's error reply).
- closePoll guards a missing getPolls().
- The native End poll button sits in the Skip/Submit row.
- The main prosody's close broadcast leaves out the answers, the occupants
have them; only a visitor node sends the main prosody's answers, and the
reducer keeps the local names of their voters.
- A visitor node replies not-allowed to a close, and handles every poll an
update closed before going on to a new poll or vote in the same update.
- The prosody tests run a polls component as a visitor node, and check that
a close fires poll-closed for mod_visitors.
- createPollEvent documents poll.closed.
* fix(polls): close the native end poll dialog and tell refused votes apart
The native dialog stayed open after confirming, because AbstractDialog takes
an undefined onSubmit result as a failed submit.
A refused vote said the poll had ended for any error. Only not-allowed means
that, other errors get a generic message. A late vote or a refused close also
doesn't need a sticky error, so both use the long timeout.
The native Button defaulted accessibilityLabel to t(accessibilityLabel ?? ''), so callers that omitted the prop got an empty label. Fall back to labelKey (and undefined when neither is set) so every button is announced by screen readers without per-call props.
* fix(shared-video): handle only commands for the shared video participant
The shared-video command adds the shared video participant on start and
removes the participant named by its value on stop. The value is the
video, but nothing checked that it names the shared video participant,
so a command with the id of a participant replaced that participant with
the shared video participant on start, or removed it on stop. This also
applied to the local participant and to participants who join later,
which receive the command with the stored presence.
Ignore shared-video commands whose value is the id of a participant other
than the shared video participant, and remove a participant on stop only
when it is the shared video participant.
Add a test for sharing and stopping a video and for commands with the id
of a participant.
* fix(prosody): remove shared-video commands for an occupant
The value of a shared-video command is the URL or the YouTube id of the
video, and the client adds or removes the participant whose id is that
value. Remove a shared-video element whose value is the nick of an
occupant of the room, the sender included, from the presence, whether or
not the room restricts video sharing. The MUC stores the presence
afterwards, so participants who join later do not receive it either.
Other shared-video elements in the presence pass.
* fix(shared-video): remove only the shared video participant when its owner leaves
When the owner of the shared video leaves, the participant with the id of
the video is removed. A participant who joins later can receive the stored
presence of the owner before the presence of the participant whose id is
that value. Then the shared video participant is created with that id and
is replaced when the participant joins, and the participant was removed
when the owner left.
Remove the participant only when it is the shared video participant.
* fix(external-api): handle the toggleNoiseSuppression command
* fix: updatess as per feedback
* fix(noise-suppression): bound queued changes with a timeout
* fix(tests): enable audio processing in the noise suppression iframe test
* feat(recording): Show a specific error when the request is invalid.
Jicofo answers a start request with bad-request when the Jibri refuses it as
invalid, e.g. because the recording parameters of the meeting are not
supported, or because the RTMP URL is invalid. The generic error asked the user
to try again, which fails in the same way.
* squash: Fix the spacing in lang/main.json (npm run lang-sort).
* fix(settings): hide the chat permission settings on native like on web
The web moderator tab shows the chat permission settings only when
showChatPermissionsModeratorSetting is enabled and the room isn't
allowners. The native moderator section always showed them.
* fix(settings): recompute the native moderator settings when moderation or follow-me changes
* fix(settings): hide the native moderator settings with a hidden field on each entry
* fix(settings): re-render the native moderator settings only when their values change
* fix(polls-history) correct poll ID extraction and persist deletions
* fix(polls-history): address review comments
Drop the unused action.pollId fallback, tighten the last-poll check and
move the poll close/create-form waits into ChatPanel helpers.
---------
Co-authored-by: damencho <[email protected]>
* fix(settings): save the native reaction sounds and follow me toggles like web
* fix(settings): turn on follow me on web while the recorder mode is on
With the recorder mode on both flags are already set, so checking Follow me
dispatched nothing for it and then turning off the recorder mode cleared both.
Apply the recorder mode first and compare follow me with the result.
* fix(settings): send off before the recorder-only follow me command
Switching from Follow me to Follow me (recorder only) dispatched only
setFollowMeRecorder(true), so followMeEnabled stayed true, the subscriber sent
nothing, and followers kept following as before. Use
setFollowMeRecorderExclusive on web and native, which turns off follow me first
like the recording dialog does.
* fix: clean up stale keyboard shortcut help entries
* refactor(keyboard-shortcuts): derive help entries dynamically, preserve numeric shortcut help, and deduplicate key handling
* fix(a11y): make web controls keyboard accessible
* fix(a11y): address review feedback
* fix(participants-pane): keep lobby drawer button styling
Give the drawer buttons their own class so they don't pick up the first-child margin of the list items and keep the drawer typography.
---------
Co-authored-by: damencho <[email protected]>
* fix(calendar-sync): don't prompt Google sign-in until the user asks
* fix(calendar-sync): offer sign in again and disconnect for a signed out calendar
* fix(calendar-sync): handle sign in again errors and drop redundant prop
---------
Co-authored-by: damencho <[email protected]>
* feat(polls): add single answer polls
A voter can always choose any number of answers of a poll. For a question
with one right answer, e.g. in an online class, each participant should
choose exactly one. Add an "Allow only one answer" option to new polls.
* mod_polls_component validates singleAnswer (a boolean when present),
stores it with the poll, relays it with new-poll and sends it with
old-polls to late joiners. It rejects an answer-poll that chooses more
than one answer of such a poll with bad-request. mod_visitors sends it to
the visitor nodes, which relay it with the new poll.
* The create form, on web and native, gets an "Allow only one answer"
toggle, off by default. The creator sends it through createPoll of
lib-jitsi-meet.
* A single answer poll shows a "Choose one answer" hint. Choosing an answer
clears the others. On web the answers are radio inputs: the Checkbox
component takes an optional type, and a radio input has the same look
with a round box.
Fixes#17001.
* feat(polls): hide the single answer option unless enabled in config
The option is sent with lib-jitsi-meet's createPoll and enforced by
mod_polls_component. Without both, a creator could pick it and get a poll that
still takes several answers. Add showPollSingleAnswerSetting, off by default.
* test(polls): cover a vote with more than one answer on a single answer poll
* fix(polls): keep showPollSingleAnswerSetting out of the config whitelist
Being in the whitelist lets anyone turn the option on from the URL
(#config.showPollSingleAnswerSetting=true) on any deployment, also one whose
mod_polls_component does not support single answer polls. It stays a
deployment setting in config.js.
* fix(polls): keep the first answer of a single answer vote instead of dropping it
Nothing on the client handles the bad-request reply: lib-jitsi-meet passes
message errors on only when they come from the room JID, and the voter has
already registered the vote locally. The voter saw a vote the server did not
count.
Keep the first chosen answer, store it and broadcast it like any other vote,
so every client, also the voter's and one that does not know about
singleAnswer, shows the vote the server counted.
* fix(polls): list everything sendPoll uses in its dependencies
The callback also uses dispatch, poll and pollId.
* fix(polls): address review comments
Log trimmed single answer votes at debug, they are normal traffic from
old clients. List dispatch in the submitAnswer and skipAnswer
dependencies. Rename the non-boolean singleAnswer test to say the poll
is rejected. Note in config.js that visitor prosodies need single answer
support too.
* feat(breakout-rooms): let moderators restrict joining breakout rooms to the rooms they assign
Any participant can choose a breakout room and join it. A moderator who
wants to decide the groups cannot prevent it. Add
permissions.breakoutRoomJoinRestricted to the main room metadata.
* mod_muc_breakout_rooms enforces it. When a moderator requests a move, the
module remembers the target room for the real JID of the participant for
30 seconds. While the restriction is set, it rejects a join to a breakout
room with <not-allowed/>, unless the occupant is a moderator of the main
room or a moderator just moved them to that room. A move to one breakout
room does not open another one. Returning to the main room is not checked.
* The occupants of the breakout rooms do not receive the metadata of the main
room, thus the breakout rooms update carries the restriction as
joinRestricted, and the module sends the update again when the permissions
of the main room change.
On the client the moderator gets a "Disable choosing a breakout room for
non-moderators" checkbox in the moderator settings, on web and native. It is
shown when breakout rooms are supported and the join button is not hidden by
config. While the restriction is set, a participant who is not a moderator
does not get the join action for breakout rooms, in the room list, the room
context menu or the native sheet. The join action for the main room stays.
On web the moderator tab saves all the permissions in one metadata update.
The metadata changes only when the server confirms it, thus a second update
would not see the first one and would undo it.
Part of #17613.
* feat(breakout-rooms): hide the join restriction setting unless enabled in config
The restriction is enforced by mod_muc_breakout_rooms, so showing the setting
with a server that runs an older version of the module would offer a toggle
that does nothing. Add showBreakoutRoomJoinPermissionsModeratorSetting, off by
default, the same way showChatPermissionsModeratorSetting gates the chat
permission settings.
* fix(breakout-rooms): address issues found in review
- A move is used up once the occupant joined the room it targets, not in
muc-occupant-pre-join, so a join that another handler rejects can be
retried, and moves to the main room no longer stay in the cache.
- The native moderator section keeps the permissions that the server has not
confirmed yet, so a second toggle doesn't revert the first one.
- The setting is hidden in a breakout room, whose metadata the server does
not read for it, and when allowners makes everyone an owner.
- The join-breakout-room iframe API command follows the restriction.
* fix(breakout-rooms): remember only the moves to a breakout room
Returning to the main room is never restricted, and a move to the main room was
never used up for a tenant room, thus it only took space in the shared cache,
e.g. for every participant when a moderator closes a breakout room.
* fix(breakout-rooms): do not keep the join restriction from an update without it
Only the update the client sends to itself for a changed display name keeps the
previous value. An update from a server that does not send joinRestricted, e.g.
in the next meeting on mobile, no longer keeps the restriction of the previous
one. The native moderator settings also drop the permissions pending for the
previous conference.
* fix(breakout-rooms): keep the moves per main room instead of a shared cache
The moves were kept in one cache of 1000 entries for every conference on the
Prosody instance, so a busy shard could evict a move before the participant
joined, and an unused move stayed until it was evicted. They are now kept on
the main room object, outside _data so they are not saved, with the same key
and expiry. Expired moves are dropped when a new one is added, and all of them
when the main room is destroyed.
* fix(breakout-rooms): do not open an empty breakout room menu
With the join restriction, Join is the only action a participant who is not a
moderator has for a breakout room, so a long-press on it opened an empty
drawer on mobile web and an empty sheet on native. The menu is no longer
opened then.
* refactor(breakout-rooms): check the main room in isBreakoutRoomJoinAllowed
Pass the room to the selector so the web, native and iframe API callers stop repeating the main room check.
* test(breakout-rooms): cover moves across conferences, expired moves and room destroy
* docs(config): note how older clients behave with the breakout room join restriction
Since the popover focus lock got enabled, react-focus-on isolates the
popover: it disables the pointer events on the rest of the page and
locks scrolling. The element under the mouse then gets a mouseleave, so
popovers rendered only while their parent is hovered close right after
opening, e.g. the chat message options and reactions menus. Clicks
outside an open popover, like on another toolbar button, are blocked
too.
Keep the focus lock and the focus return, but disable the isolation and
the scroll lock, the same way ContextMenu uses FocusOn.
The audio-translation picker offered a fixed list of 13 languages, the set
OpenAI's speech-to-speech model accepts. The translation service can now run
on a provider that accepts any BCP-47 tag, and the client learns nothing
about the server's list (the language is chosen before the translator socket
exists), so a deployment had no way to offer more, or fewer.
config.audioTranslation.translationLanguages replaces the offered list with
the codes the deployment's provider accepts, sent to the bridge verbatim.
Unset, or null (how a configOverwrite resets a key), keeps the 13 defaults.
config.audioTranslation.translationLanguagesHead pins some of them to the
top. The keys match transcription.translationLanguages{,Head}; unlike that
head this one only reorders: an entry is matched case-insensitively, takes
the list's spelling, and one not in the list is ignored, so it can neither
add a language the provider may reject nor change the code sent.
A code must be 1-20 ASCII letters, exactly what prosody's
mod_audio_translation_component accepts (is_valid_language). A code it
refuses fails the whole request with bad-request, and a meeting-wide request
covers every speaker, so one bad configured code would break translation for
all of them; such codes are dropped from the list with one logged warning,
and bad-request now maps to a notification that points at the configuration
instead of the generic "try again". A list that is set but unusable (not an
array, empty, or every entry dropped) is logged once and offers nothing
rather than 13 languages the deployer did not choose. Codes are kept as
spelled but deduplicated case-insensitively; the selected language stays in
the picker by exact string so the active row still highlights.
Labels: the 13 defaults keep their hand-written native-script labels on every
platform. A configured extra is labelled with the language's own name from
Intl.DisplayNames where the platform has the API and locale data for that
language (every supported browser; Hermes implements no Intl.DisplayNames,
so the mobile apps fall through), first letter upper-cased since CLDR gives
Latin-script names in lower case; else the English name from
lang/translation-languages.json; else the code. The supportedLocalesOf check
matters: without it the API resolves to the viewer's locale and returns the
viewer-language name ("Klingon" for tlh on an English browser). The defaults
stay hand-written because CLDR matches twelve of them and has only
"Indonesia" for the thirteenth, where we keep "Bahasa Indonesia".
Both dialogs select only the audioTranslation config block and derive the
ordered list in a useMemo. SUPPORTED_TRANSLATION_LANGUAGES is renamed
DEFAULT_TRANSLATION_LANGUAGES, since it is no longer the supported set.
Bumps lib-jitsi-meet to v2236.0.0+51058e35 for jitsi/lib-jitsi-meet#3159,
which fixed the source-name parsers for a translated source whose language
suffix contains a hyphen. Region- and script-tagged targets still need
prosody's is_valid_language relaxed; that is a separate change.