Skip to content

Commit

Permalink
Fix wrong E2E icon in room header for unencrypted local room
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 committed Mar 16, 2023
1 parent 2344eaa commit a532177
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/structures/RoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function LocalRoomView(props: LocalRoomViewProps): ReactElement {
onSearchClick={null}
onInviteClick={null}
onForgetClick={null}
e2eStatus={E2EStatus.Normal}
e2eStatus={room.encrypted ? E2EStatus.Normal : null}
onAppsClick={null}
appsShown={false}
excludedRightPanelPhaseButtons={[]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
</span>
</div>
</div>
<div
class="mx_E2EIcon mx_E2EIcon_normal mx_RoomHeader_icon"
/>
<div
class="mx_RoomHeader_name mx_RoomHeader_name--textonly"
>
Expand Down Expand Up @@ -329,9 +326,6 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
</span>
</div>
</div>
<div
class="mx_E2EIcon mx_E2EIcon_normal mx_RoomHeader_icon"
/>
<div
class="mx_RoomHeader_name mx_RoomHeader_name--textonly"
>
Expand Down

0 comments on commit a532177

Please sign in to comment.