Re-add useful comment

pull/21833/head
Luke Barnard 2017-08-14 14:41:03 +01:00
parent b59de7964c
commit 2844b574d5
1 changed files with 2 additions and 0 deletions

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(() => {