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,18 +296,20 @@ class FilePanel extends React.Component<IProps, IState> {
<Measured sensor={this.card.current} onMeasurement={this.onMeasurement} />
)}
{isRoomEncryptedLoaded && (
<SearchWarning isRoomEncrypted={isRoomEncrypted} kind={WarningKind.Files} />
<>
<SearchWarning isRoomEncrypted={isRoomEncrypted} kind={WarningKind.Files} />
<TimelinePanel
manageReadReceipts={false}
manageReadMarkers={false}
timelineSet={this.state.timelineSet}
showUrlPreview={false}
onPaginationRequest={this.onPaginationRequest}
resizeNotifier={this.props.resizeNotifier}
empty={emptyState}
layout={Layout.Group}
/>
</>
)}
<TimelinePanel
manageReadReceipts={false}
manageReadMarkers={false}
timelineSet={this.state.timelineSet}
showUrlPreview={false}
onPaginationRequest={this.onPaginationRequest}
resizeNotifier={this.props.resizeNotifier}
empty={emptyState}
layout={Layout.Group}
/>
</BaseCard>
</RoomContext.Provider>
);