notify new screen after setting state

pull/21833/head
Matthew Hodgson 2019-09-24 01:51:21 +01:00
parent b85dc7b5a8
commit 3ce47a0181
1 changed files with 3 additions and 2 deletions

View File

@ -874,9 +874,10 @@ export default createReactClass({
if (roomInfo.event_id && roomInfo.highlighted) { if (roomInfo.event_id && roomInfo.highlighted) {
presentedId += "/" + roomInfo.event_id; presentedId += "/" + roomInfo.event_id;
} }
this.notifyNewScreen('room/' + presentedId);
newState.ready = true; newState.ready = true;
this.setState(newState); this.setState(newState, ()=>{
this.notifyNewScreen('room/' + presentedId);
});
}); });
}, },