PR feedback
This commit is contained in:
parent
c5986395ef
commit
d5cc835a93
1 changed files with 2 additions and 2 deletions
|
@ -925,9 +925,9 @@ export default React.createClass({
|
||||||
_viewUser: function(userId, action) {
|
_viewUser: function(userId, action) {
|
||||||
// Wait for the first sync so that `getRoom` gives us a room object if it's
|
// Wait for the first sync so that `getRoom` gives us a room object if it's
|
||||||
// in the sync response
|
// in the sync response
|
||||||
const waitFor = this.firstSyncPromise ?
|
const waitForSync = this.firstSyncPromise ?
|
||||||
this.firstSyncPromise.promise : Promise.resolve();
|
this.firstSyncPromise.promise : Promise.resolve();
|
||||||
waitFor.then(() => {
|
waitForSync.then(() => {
|
||||||
if (action === 'chat') {
|
if (action === 'chat') {
|
||||||
this._chatCreateOrReuse(userId);
|
this._chatCreateOrReuse(userId);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue