Skip to content

fix confusing ui for client side embed settings#535

Open
thundertheidiot wants to merge 1 commit intoSableClient:devfrom
thundertheidiot:client-embed-ui-fix
Open

fix confusing ui for client side embed settings#535
thundertheidiot wants to merge 1 commit intoSableClient:devfrom
thundertheidiot:client-embed-ui-fix

Conversation

@thundertheidiot
Copy link
Contributor

Description

this is a tiny fix to a potentially confusing "problem" that i thought of when going to sleep last night, previously if you enabled client side embeds in both unencrypted and encrypted rooms, and then turned off the main client side embeds toggle, the encrypted rooms setting would remain on, even though it would be hidden in the setting ui

feel free to just close if this is stupid

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

AI disclosure:

  • Partially AI assisted (clarify which code was AI assisted and briefly explain what it does).
  • Fully AI generated (explain what all the generated code does in moderate detail).

previously you could enable client side embeds in encrypted rooms,
while disabling them in unencrypted rooms, even though turning off the
unencrypted room toggle hid the encrypted rooms toggle
@dozro
Copy link
Contributor

dozro commented Mar 25, 2026

does the UI in the settings currently allow to set the setting for embeds in encrypted rooms to on while embeds for normal rooms are off?

if so, we should maybe change that… something like the thing with hidden events and tombstones, or maybe only show the option when you also selected the other 🤔

@thundertheidiot
Copy link
Contributor Author

the client embeds (unencrypted rooms) toggle toggles the visibility of the other settings under it, but you could turn both on, and then disable the unencrypted one, which would hide the other settings, but actually secretly leave the encrypted room embed setting on, which felt pretty unintuitive

this fixes that, so that if you turn off the basic toggle, also the encrypted rooms support is effectively disabled

@dozro
Copy link
Contributor

dozro commented Mar 25, 2026

hmmm that should probably be fixed at the source as well then. iirc correctly from first looking at this Pr lol, it changes it downstream 🤔

@thundertheidiot
Copy link
Contributor Author

i mean i think it's fine for the encrypted toggle to remain on, if you want to quickly just disable all client embeds for a bit and then turn them back on later, it would make sense for the encrypted ones to stay on so you don't have to click on two things later?
i might be stupid

@dozro
Copy link
Contributor

dozro commented Mar 25, 2026

i think that’s not the behavior a user expects, but i don’t know tbh

@7w1
Copy link
Member

7w1 commented Mar 25, 2026

Might be worth just graying out the encrypted toggle if the normal toggle is disabled like we do for a few other settings I can't remember. I know we do that with the desktop only new line setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants