use transactionId as key for react

This commit is contained in:
Bruno Windels 2019-12-20 21:31:07 +01:00
parent de1c3e2f83
commit 075e42c076
2 changed files with 2 additions and 2 deletions

View file

@ -1463,7 +1463,7 @@ export default createReactClass({
dis.dispatch({
action: "show_toast",
toast: {
key: request.event.getId(),
key: request.channel.transactionId,
title: _t("Verification Request"),
icon: "verification",
props: {request},

View file

@ -30,7 +30,7 @@ export default class EncryptionPanel extends React.PureComponent {
const request = this.props.verificationRequest || this.state.verificationRequest;
const {member} = this.props;
if (request) {
return <VerificationPanel request={request} />;
return <VerificationPanel request={request} key={request.channel.transactionId} />;
} else if (member) {
return <EncryptionInfo onStartVerification={this._onStartVerification} member={member} />;
} else {