Word the denied-permission message for every host

- Drop "browser settings": Element Desktop grants microphone access through the
  app, not a browser.
- Mirror the no-device message, which names no app.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
fkwp
2026-09-23 20:17:30 +02:00
co-authored by Claude Opus 5.5
parent d2b1536850
commit cf486cf42a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -166,7 +166,7 @@
"microphone_level": { "microphone_level": {
"label": "Microphone level", "label": "Microphone level",
"no_device": "No microphone found. Connect one, then try again.", "no_device": "No microphone found. Connect one, then try again.",
"permission_denied": "Element Call cannot use your microphone. Allow access in your browser settings.", "permission_denied": "Microphone access is blocked. Allow it, then try again.",
"value": "{{level}} of {{max}}" "value": "{{level}} of {{max}}"
}, },
"microphone_off": "Microphone off", "microphone_off": "Microphone off",
@@ -113,7 +113,7 @@ export const PermissionDenied: Story = {
const canvas = within(canvasElement); const canvas = within(canvasElement);
await expect(canvas.queryByRole("meter")).toBeNull(); await expect(canvas.queryByRole("meter")).toBeNull();
await expect( await expect(
canvas.getByText(/Allow access in your browser settings/), canvas.getByText(/Microphone access is blocked/),
).toBeVisible(); ).toBeVisible();
}, },
}; };
+1 -1
View File
@@ -27,7 +27,7 @@ describe("MicrophoneLevelMeter", () => {
); );
// A next action, not a flat meter that reads as silence. // A next action, not a flat meter that reads as silence.
expect( expect(
denied.getByText(/Allow access in your browser settings/), denied.getByText(/Microphone access is blocked/),
).toBeInTheDocument(); ).toBeInTheDocument();
expect(denied.queryByRole("meter")).toBeNull(); expect(denied.queryByRole("meter")).toBeNull();