You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
use transactionId as key for react
This commit is contained in:
@@ -1463,7 +1463,7 @@ export default createReactClass({
|
|||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: "show_toast",
|
action: "show_toast",
|
||||||
toast: {
|
toast: {
|
||||||
key: request.event.getId(),
|
key: request.channel.transactionId,
|
||||||
title: _t("Verification Request"),
|
title: _t("Verification Request"),
|
||||||
icon: "verification",
|
icon: "verification",
|
||||||
props: {request},
|
props: {request},
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default class EncryptionPanel extends React.PureComponent {
|
|||||||
const request = this.props.verificationRequest || this.state.verificationRequest;
|
const request = this.props.verificationRequest || this.state.verificationRequest;
|
||||||
const {member} = this.props;
|
const {member} = this.props;
|
||||||
if (request) {
|
if (request) {
|
||||||
return <VerificationPanel request={request} />;
|
return <VerificationPanel request={request} key={request.channel.transactionId} />;
|
||||||
} else if (member) {
|
} else if (member) {
|
||||||
return <EncryptionInfo onStartVerification={this._onStartVerification} member={member} />;
|
return <EncryptionInfo onStartVerification={this._onStartVerification} member={member} />;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user