mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 06:51:21 +02:00
Remove stray setState which caused encryption state shields to flicker (#12632)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
28dc65508f
commit
f9e2425ac7
@ -1539,7 +1539,6 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
|||||||
this.setState({ e2eStatus });
|
this.setState({ e2eStatus });
|
||||||
|
|
||||||
if (this.context.client.isCryptoEnabled()) {
|
if (this.context.client.isCryptoEnabled()) {
|
||||||
this.setState({ e2eStatus: E2EStatus.Normal });
|
|
||||||
/* At this point, the user has encryption on and cross-signing on */
|
/* At this point, the user has encryption on and cross-signing on */
|
||||||
e2eStatus = await shieldStatusForRoom(this.context.client, room);
|
e2eStatus = await shieldStatusForRoom(this.context.client, room);
|
||||||
RoomView.e2eStatusCache.set(room.roomId, e2eStatus);
|
RoomView.e2eStatusCache.set(room.roomId, e2eStatus);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user