Skip to content

Commit

Permalink
fix media autoload button function as per it's label (#2195)
Browse files Browse the repository at this point in the history
* Corrected button title

Media would load automatically if the option is checked not the other way around.

* Update src/app/features/settings/general/General.tsx

* Update General.tsx

* Update General.tsx

---------

Co-authored-by: Krishan <[email protected]>
  • Loading branch information
array-in-a-matrix and kfiven authored Feb 11, 2025
1 parent b84f975 commit 999bb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/features/settings/general/General.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ function Messages() {
<SequenceCard className={SequenceCardStyle} variant="SurfaceVariant" direction="Column">
<SettingTile
title="Disable Media Auto Load"
after={<Switch variant="Primary" value={mediaAutoLoad} onChange={setMediaAutoLoad} />}
after={<Switch variant="Primary" value={!mediaAutoLoad} onChange={(v) => setMediaAutoLoad(!v)} />}
/>
</SequenceCard>
<SequenceCard className={SequenceCardStyle} variant="SurfaceVariant" direction="Column">
Expand Down

0 comments on commit 999bb7a

Please sign in to comment.