Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 17d21ea

Browse files
committed
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.
1 parent 1758450 commit 17d21ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/structures/RoomView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
944944

945945
if (ev.getType() === "m.room.encryption") {
946946
this.updateE2EStatus(room);
947+
this.updatePreviewUrlVisibility(room);
947948
}
948949

949950
// ignore anything but real-time updates at the end of the room:

0 commit comments

Comments
 (0)