use transactionId as key for react
This commit is contained in:
parent
de1c3e2f83
commit
075e42c076
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue