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

Commit

Permalink
Remove stray setState which caused encryption state shields to flicker (
Browse files Browse the repository at this point in the history
#12632)

Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy authored Jun 18, 2024
1 parent 28dc655 commit f9e2425
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/structures/RoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,6 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
this.setState({ e2eStatus });

if (this.context.client.isCryptoEnabled()) {
this.setState({ e2eStatus: E2EStatus.Normal });
/* At this point, the user has encryption on and cross-signing on */
e2eStatus = await shieldStatusForRoom(this.context.client, room);
RoomView.e2eStatusCache.set(room.roomId, e2eStatus);
Expand Down

0 comments on commit f9e2425

Please sign in to comment.