From c0c447ab9bb7cfb9319e56cbbc1cb87048ca3322 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 5 Apr 2022 11:10:23 +0100 Subject: [PATCH] Fix URL previews being enabled when room first created (#8227) 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 ca529b8adf..2cf8b42265 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: