Re-add useful comment

This commit is contained in:
Luke Barnard 2017-08-14 14:41:03 +01:00
parent b59de7964c
commit 2844b574d5

View File

@ -1203,6 +1203,8 @@ module.exports = React.createClass({
} else if (screen.indexOf('user/') == 0) {
const userId = screen.substring(5);
// Wait for the first sync so that `getRoom` gives us a room object if it's
// in the sync response
const waitFor = this.firstSyncPromise ?
this.firstSyncPromise.promise : Promise.resolve();
waitFor.then(() => {