Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a532177

Browse files
committed
Fix wrong E2E icon in room header for unencrypted local room
1 parent 2344eaa commit a532177

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/components/structures/RoomView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function LocalRoomView(props: LocalRoomViewProps): ReactElement {
301301
onSearchClick={null}
302302
onInviteClick={null}
303303
onForgetClick={null}
304-
e2eStatus={E2EStatus.Normal}
304+
e2eStatus={room.encrypted ? E2EStatus.Normal : null}
305305
onAppsClick={null}
306306
appsShown={false}
307307
excludedRightPanelPhaseButtons={[]}

test/components/structures/__snapshots__/RoomView-test.tsx.snap

-6
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
136136
</span>
137137
</div>
138138
</div>
139-
<div
140-
class="mx_E2EIcon mx_E2EIcon_normal mx_RoomHeader_icon"
141-
/>
142139
<div
143140
class="mx_RoomHeader_name mx_RoomHeader_name--textonly"
144141
>
@@ -329,9 +326,6 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
329326
</span>
330327
</div>
331328
</div>
332-
<div
333-
class="mx_E2EIcon mx_E2EIcon_normal mx_RoomHeader_icon"
334-
/>
335329
<div
336330
class="mx_RoomHeader_name mx_RoomHeader_name--textonly"
337331
>

0 commit comments

Comments
 (0)