From 17d21eaafa4bacb9be918ae6dfd26b7a8c8e0071 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 4 Apr 2022 18:01:38 +0100 Subject: [PATCH] Fix URL previews being enabled when room first created We didn't update whether URL previews should be enabled when encryption was enabled in a room, so when you create a room (or enable encryption) it starts off with URL previews using the setting for non-e2e rooms untilyou switch rooms / refresh. --- src/components/structures/RoomView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index ab06369406e..5371b9a0c3f 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -944,6 +944,7 @@ export class RoomView extends React.Component { if (ev.getType() === "m.room.encryption") { this.updateE2EStatus(room); + this.updatePreviewUrlVisibility(room); } // ignore anything but real-time updates at the end of the room: