render done tile as accepted
This commit is contained in:
parent
b49c471f05
commit
52c7c5b837
1 changed files with 4 additions and 3 deletions
|
@ -108,11 +108,12 @@ export default class MKeyVerificationRequest extends React.Component {
|
|||
let stateNode;
|
||||
|
||||
|
||||
if (request.ready || request.started || request.cancelled) {
|
||||
const accepted = request.ready || request.started || request.done;
|
||||
if (accepted || request.cancelled) {
|
||||
let stateLabel;
|
||||
if (request.ready || request.started) {
|
||||
if (accepted) {
|
||||
stateLabel = this._acceptedLabel(request.receivingUserId);
|
||||
} else if (request.cancelled) {
|
||||
} else {
|
||||
stateLabel = this._cancelledLabel(request.cancellingUserId);
|
||||
}
|
||||
stateNode = (<div className="mx_KeyVerification_state">{stateLabel}</div>);
|
||||
|
|
Loading…
Reference in a new issue