1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

review feedback

This commit is contained in:
Richard van der Hoff
2016-09-01 22:45:09 +01:00
committed by GitHub
parent ba341c11fb
commit b4521bc44c

View File

@ -197,6 +197,8 @@ module.exports = React.createClass({
window.addEventListener('resize', this.handleResize); window.addEventListener('resize', this.handleResize);
this.handleResize(); this.handleResize();
// the extra q() ensures that synchronous exceptions hit the same codepath as
// asynchronous ones.
q().then(() => { q().then(() => {
return Lifecycle.loadSession({ return Lifecycle.loadSession({
realQueryParams: this.props.realQueryParams, realQueryParams: this.props.realQueryParams,