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

Commit

Permalink
Fix URL previews being enabled when room first created
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dbkr committed Apr 4, 2022
1 parent 1758450 commit 17d21ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/structures/RoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {

if (ev.getType() === "m.room.encryption") {
this.updateE2EStatus(room);
this.updatePreviewUrlVisibility(room);
}

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

0 comments on commit 17d21ea

Please sign in to comment.