render done tile as accepted

pull/21833/head
Bruno Windels 2019-12-20 21:31:53 +01:00
parent b49c471f05
commit 52c7c5b837
1 changed files with 4 additions and 3 deletions

View File

@ -108,11 +108,12 @@ export default class MKeyVerificationRequest extends React.Component {
let stateNode; let stateNode;
if (request.ready || request.started || request.cancelled) { const accepted = request.ready || request.started || request.done;
if (accepted || request.cancelled) {
let stateLabel; let stateLabel;
if (request.ready || request.started) { if (accepted) {
stateLabel = this._acceptedLabel(request.receivingUserId); stateLabel = this._acceptedLabel(request.receivingUserId);
} else if (request.cancelled) { } else {
stateLabel = this._cancelledLabel(request.cancellingUserId); stateLabel = this._cancelledLabel(request.cancellingUserId);
} }
stateNode = (<div className="mx_KeyVerification_state">{stateLabel}</div>); stateNode = (<div className="mx_KeyVerification_state">{stateLabel}</div>);