From f9e2425ac700b50a8c2600cc212f2a957115259c Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 18 Jun 2024 16:12:12 +0100 Subject: [PATCH] Remove stray setState which caused encryption state shields to flicker (#12632) 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 ceeb638dd9..25686c53c6 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);