From 52c7c5b8379dbb70912a15353993e2703d774949 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 20 Dec 2019 21:31:53 +0100 Subject: [PATCH] render done tile as accepted --- src/components/views/messages/MKeyVerificationRequest.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/views/messages/MKeyVerificationRequest.js b/src/components/views/messages/MKeyVerificationRequest.js index ea99435d85..ebdfa7c636 100644 --- a/src/components/views/messages/MKeyVerificationRequest.js +++ b/src/components/views/messages/MKeyVerificationRequest.js @@ -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 = (
{stateLabel}
);