mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-08 13:46:16 +02:00
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:
parent
371ccd7858
commit
c0c447ab9b
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user