@@ -301,7 +301,7 @@ function LocalRoomView(props: LocalRoomViewProps): ReactElement {
301
301
onSearchClick = { null }
302
302
onInviteClick = { null }
303
303
onForgetClick = { null }
304
- e2eStatus = { E2EStatus . Normal }
304
+ e2eStatus = { room . encrypted ? E2EStatus . Normal : undefined }
305
305
onAppsClick = { null }
306
306
appsShown = { false }
307
307
excludedRightPanelPhaseButtons = { [ ] }
@@ -327,6 +327,7 @@ function LocalRoomView(props: LocalRoomViewProps): ReactElement {
327
327
}
328
328
329
329
interface ILocalRoomCreateLoaderProps {
330
+ localRoom : LocalRoom ;
330
331
names : string ;
331
332
resizeNotifier : ResizeNotifier ;
332
333
}
@@ -350,7 +351,7 @@ function LocalRoomCreateLoader(props: ILocalRoomCreateLoaderProps): ReactElement
350
351
onSearchClick = { null }
351
352
onInviteClick = { null }
352
353
onForgetClick = { null }
353
- e2eStatus = { E2EStatus . Normal }
354
+ e2eStatus = { props . localRoom . encrypted ? E2EStatus . Normal : undefined }
354
355
onAppsClick = { null }
355
356
appsShown = { false }
356
357
excludedRightPanelPhaseButtons = { [ ] }
@@ -1918,11 +1919,11 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
1918
1919
return this . getPermalinkCreatorForRoom ( this . state . room ) ;
1919
1920
}
1920
1921
1921
- private renderLocalRoomCreateLoader ( ) : ReactElement {
1922
+ private renderLocalRoomCreateLoader ( localRoom : LocalRoom ) : ReactElement {
1922
1923
const names = this . state . room . getDefaultRoomName ( this . context . client . getUserId ( ) ) ;
1923
1924
return (
1924
1925
< RoomContext . Provider value = { this . state } >
1925
- < LocalRoomCreateLoader names = { names } resizeNotifier = { this . props . resizeNotifier } />
1926
+ < LocalRoomCreateLoader localRoom = { localRoom } names = { names } resizeNotifier = { this . props . resizeNotifier } />
1926
1927
</ RoomContext . Provider >
1927
1928
) ;
1928
1929
}
@@ -1956,7 +1957,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
1956
1957
public render ( ) : React . ReactNode {
1957
1958
if ( this . state . room instanceof LocalRoom ) {
1958
1959
if ( this . state . room . state === LocalRoomState . CREATING ) {
1959
- return this . renderLocalRoomCreateLoader ( ) ;
1960
+ return this . renderLocalRoomCreateLoader ( this . state . room ) ;
1960
1961
}
1961
1962
1962
1963
return this . renderLocalRoomView ( this . state . room ) ;
0 commit comments