From d49fbf25f71b124f57ccd9e60821eee7d2c71d13 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 13 Feb 2020 14:32:33 +0100 Subject: [PATCH] check if verifier sasEvent was already set on mount this allow the verification panel to fully recover the UI state from an on-going verification request --- src/components/views/right_panel/VerificationPanel.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/views/right_panel/VerificationPanel.js b/src/components/views/right_panel/VerificationPanel.js index a8d4ce733b..7474f0ef48 100644 --- a/src/components/views/right_panel/VerificationPanel.js +++ b/src/components/views/right_panel/VerificationPanel.js @@ -258,7 +258,11 @@ export default class VerificationPanel extends React.PureComponent { }; componentDidMount() { - this.props.request.on("change", this._onRequestChange); + const {request} = this.props; + request.on("change", this._onRequestChange); + if (request.verifier) { + this.setState({sasEvent: request.verifier.sasEvent}); + } this._onRequestChange(); }