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.
This commit is contained in:
David Baker 2022-04-05 11:10:23 +01:00 committed by GitHub
parent 371ccd7858
commit c0c447ab9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -944,6 +944,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
if (ev.getType() === "m.room.encryption") { if (ev.getType() === "m.room.encryption") {
this.updateE2EStatus(room); this.updateE2EStatus(room);
this.updatePreviewUrlVisibility(room);
} }
// ignore anything but real-time updates at the end of the room: // ignore anything but real-time updates at the end of the room: