Skip to content

[stable8.7] fix(settings): read social sync initial state as boolean - #5620

Merged
hamza221 merged 2 commits into
stable8.7from
backport/5566/stable8.7
Aug 6, 2026
Merged

[stable8.7] fix(settings): read social sync initial state as boolean#5620
hamza221 merged 2 commits into
stable8.7from
backport/5566/stable8.7

Conversation

@backportbot

@backportbot backportbot Bot commented Aug 6, 2026

Copy link
Copy Markdown

Backport of PR #5566

MiMoHo and others added 2 commits August 6, 2026 11:04
Since babe45a the PageController provides allowSocialSync and
enableSocialSync as booleans, but ContactsSettings.vue still compared
them with the strings 'yes'/'no'. Both comparisons therefore always
evaluated to true: the 'Update avatars from social media' switch
always appeared enabled regardless of the stored setting.

Also put the unused allowSocialSync state back to work by hiding the
switch when the administrator has disabled social sync, matching the
behaviour before the settings dialog refactorings.

AdminSettings.vue is intentionally left unchanged: its initial state
comes from lib/Settings/AdminSettings.php, which still provides the
raw string app values, so the string comparison is correct there.

Resolves #5561

Assisted-by: Claude:claude-fable-5
Signed-off-by: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>
Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>
@backportbot
backportbot Bot requested review from DerDreschner and hamza221 August 6, 2026 11:04
@backportbot backportbot Bot added bug Something isn't working 3. to review Waiting for reviews feedback-requested labels Aug 6, 2026
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/components/AppNavigation/ContactsSettings.vue 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@hamza221
hamza221 enabled auto-merge August 6, 2026 12:23
@hamza221
hamza221 merged commit ef816d4 into stable8.7 Aug 6, 2026
41 checks passed
@hamza221
hamza221 deleted the backport/5566/stable8.7 branch August 6, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feedback-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants