From a39473810a3c48b3de49d429d46eeeae2a21784b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 2 Mar 2022 14:29:45 +0000 Subject: [PATCH] Fix react warnings (#7946) --- src/components/views/avatars/MemberAvatar.tsx | 6 ++++-- .../views/settings/CryptographyPanel.tsx | 18 ++++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/components/views/avatars/MemberAvatar.tsx b/src/components/views/avatars/MemberAvatar.tsx index 4ca2fb8ac8..e00b9b4b85 100644 --- a/src/components/views/avatars/MemberAvatar.tsx +++ b/src/components/views/avatars/MemberAvatar.tsx @@ -108,7 +108,8 @@ export default class MemberAvatar extends React.PureComponent { } render() { - let { member, fallbackUserId, onClick, viewUserOnClick, ...otherProps } = this.props; + // eslint-disable-next-line @typescript-eslint/no-unused-vars + let { member, fallbackUserId, onClick, viewUserOnClick, forceHistorical, ...otherProps } = this.props; const userId = member ? member.userId : fallbackUserId; if (viewUserOnClick) { @@ -122,7 +123,8 @@ export default class MemberAvatar extends React.PureComponent { } return ( - {
{ _t("Cryptography") } - - - - - - - - + + + + + + + + + +
{ _t("Session ID:") }{ deviceId }
{ _t("Session key:") }{ identityKey }
{ _t("Session ID:") }{ deviceId }
{ _t("Session key:") }{ identityKey }
{ importExportButtons } { noSendUnverifiedSetting }