Re-add useful comment
This commit is contained in:
parent
b59de7964c
commit
2844b574d5
1 changed files with 2 additions and 0 deletions
|
@ -1203,6 +1203,8 @@ module.exports = React.createClass({
|
||||||
} else if (screen.indexOf('user/') == 0) {
|
} else if (screen.indexOf('user/') == 0) {
|
||||||
const userId = screen.substring(5);
|
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 ?
|
const waitFor = this.firstSyncPromise ?
|
||||||
this.firstSyncPromise.promise : Promise.resolve();
|
this.firstSyncPromise.promise : Promise.resolve();
|
||||||
waitFor.then(() => {
|
waitFor.then(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue