Skip to content

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

Merged
Antreesy merged 2 commits into
stable34from
backport/19239/stable34
Sep 5, 2026
Merged

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

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>
@Antreesy
Antreesy enabled auto-merge September 5, 2026 08:25
@Antreesy
Antreesy merged commit 1fd1af9 into stable34 Sep 5, 2026
54 checks passed
@Antreesy
Antreesy deleted the backport/19239/stable34 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