Skip to content

[stable35] fix(sounds): fall back when the server has no play-sounds capability - #19307

Merged
Antreesy merged 2 commits into
stable35from
backport/19239/stable35
Sep 5, 2026
Merged

[stable35] fix(sounds): fall back when the server has no play-sounds capability#19307
Antreesy merged 2 commits into
stable35from
backport/19239/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 5, 2026

Copy link
Copy Markdown

Backport of PR #19239

bakiburakogun and others added 2 commits September 5, 2026 08:23
Since Talk 24 the sounds store takes the user's "play sounds" setting from
the capabilities (config.call.play-sounds). Servers before Talk 24 don't
expose it there, so against such a server getTalkConfig() returns undefined,
sounds are off after every start and the toggle in the settings dialog
doesn't stick.

Read the capability once. Guests keep what this browser remembered,
otherwise the capability decides; without it, fall back to the value in
browser storage and finally to enabled. On change, pass the capability
along to setPlaySounds: a server that cannot hand the value back is not
written to either, and the setting stays in the browser.

Ref nextcloud/talk-desktop#1087

Signed-off-by: Baki Burak Ogun <63836730+bakiburakogun@users.noreply.github.com>
- setPlaySounds mock was unnecessary, since it skipped BrowserStorage call
- mock axios.post instead

Assisted-by: ClaudeCode:claude-sonnet-5
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@backportbot
backportbot Bot requested a review from Antreesy September 5, 2026 08:23
@backportbot backportbot Bot added this to the ⛅ Next RC (35) milestone Sep 5, 2026
@Antreesy
Antreesy enabled auto-merge September 5, 2026 08:25
@Antreesy
Antreesy merged commit 4e6efa5 into stable35 Sep 5, 2026
54 checks passed
@Antreesy
Antreesy deleted the backport/19239/stable35 branch September 5, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants