1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

PR feedback

This commit is contained in:
Bruno Windels
2019-04-17 18:23:49 +02:00
parent c5986395ef
commit d5cc835a93

View File

@@ -925,9 +925,9 @@ export default React.createClass({
_viewUser: function(userId, action) {
// 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 waitForSync = this.firstSyncPromise ?
this.firstSyncPromise.promise : Promise.resolve();
waitFor.then(() => {
waitForSync.then(() => {
if (action === 'chat') {
this._chatCreateOrReuse(userId);
return;