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({
|
||||
action: "show_toast",
|
||||
toast: {
|
||||
key: request.event.getId(),
|
||||
key: request.channel.transactionId,
|
||||
title: _t("Verification Request"),
|
||||
icon: "verification",
|
||||
props: {request},
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue