mirror of https://github.com/vector-im/riot-web
render done tile as accepted
parent
b49c471f05
commit
52c7c5b837
|
@ -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>);
|
||||||
|
|
Loading…
Reference in New Issue