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

Commit f9e2425

Browse files
authored
Remove stray setState which caused encryption state shields to flicker (#12632)
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 28dc655 commit f9e2425

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/components/structures/RoomView.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,6 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
15391539
this.setState({ e2eStatus });
15401540

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

0 commit comments

Comments
 (0)