Display timeline panel when room `isRoomEncrypted` is loaded

florianduros/rip-out-legacy-crypto/migrate-filepanel-isRoomEncrypted
Florian Duros 2024-10-23 15:57:46 +02:00
parent b718c092a7
commit 0ba08404f5
No known key found for this signature in database
GPG Key ID: A5BBB4041B493F15
1 changed files with 13 additions and 11 deletions

View File

@ -296,8 +296,8 @@ class FilePanel extends React.Component<IProps, IState> {
<Measured sensor={this.card.current} onMeasurement={this.onMeasurement} />
)}
{isRoomEncryptedLoaded && (
<>
<SearchWarning isRoomEncrypted={isRoomEncrypted} kind={WarningKind.Files} />
)}
<TimelinePanel
manageReadReceipts={false}
manageReadMarkers={false}
@ -308,6 +308,8 @@ class FilePanel extends React.Component<IProps, IState> {
empty={emptyState}
layout={Layout.Group}
/>
</>
)}
</BaseCard>
</RoomContext.Provider>
);