From 3ce47a01817fc57a075c962c3aed614b8614e641 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 24 Sep 2019 01:51:21 +0100 Subject: [PATCH] notify new screen after setting state --- src/components/structures/MatrixChat.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 874149f2c6..b7f1ead15c 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -874,9 +874,10 @@ export default createReactClass({ if (roomInfo.event_id && roomInfo.highlighted) { presentedId += "/" + roomInfo.event_id; } - this.notifyNewScreen('room/' + presentedId); newState.ready = true; - this.setState(newState); + this.setState(newState, ()=>{ + this.notifyNewScreen('room/' + presentedId); + }); }); },