Skip to content

Commit

Permalink
Fix didMount condition
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Oct 23, 2024
1 parent 3ccfd9b commit 3797644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/FilePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class FilePanel extends React.Component<IProps, IState> {

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.
Expand Down

0 comments on commit 3797644

Please sign in to comment.