From 3797644dddf170554f84221d07bf79cf2bdcaa6a Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 23 Oct 2024 17:53:34 +0200 Subject: [PATCH] Fix didMount condition --- src/components/structures/FilePanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/FilePanel.tsx b/src/components/structures/FilePanel.tsx index b7c084c524..999d9292ee 100644 --- a/src/components/structures/FilePanel.tsx +++ b/src/components/structures/FilePanel.tsx @@ -124,7 +124,7 @@ class FilePanel extends React.Component { await this.updateTimelineSet(this.props.roomId); - if (isRoomEncrypted) return; + if (!isRoomEncrypted) return; // The timelineSets filter makes sure that encrypted events that contain // URLs never get added to the timeline, even if they are live events.