fix confusing ui for client side embed settings
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
This commit is contained in:
1 parent
28d8e942ac
commit
1dd0246d2a
2 files changed
+6
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
default: patch
|
||||
---
|
||||
|
||||
# Fix confusing ui with `Client Side Embeds in Encrypted Rooms` setting
|
||||
@@ -145,7 +145,7 @@ export function RoomTimeline({
|
||||
|
||||
const showUrlPreview = room.hasEncryptionStateEvent() ? encUrlPreview : urlPreview;
|
||||
const showClientUrlPreview = room.hasEncryptionStateEvent()
|
||||
? encClientUrlPreview
|
||||
? clientUrlPreview && encClientUrlPreview
|
||||
: clientUrlPreview;
|
||||
|
||||
const nicknames = useAtomValue(nicknamesAtom);
|
||||
|
||||
Reference in new issue
Block a user