From 2a03454dbada160fa2656d1f7a408ee54901940d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 18 Jun 2024 10:38:07 +0100 Subject: [PATCH] Remove stray setState which caused encryption state shields to flicker Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/RoomView.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index ceeb638dd9b..25686c53c60 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -1539,7 +1539,6 @@ export class RoomView extends React.Component { 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);