From d5cc835a931de3106c7afcb327a59d890e252cbc Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 17 Apr 2019 18:23:49 +0200 Subject: [PATCH] PR feedback --- src/components/structures/MatrixChat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 2a206276dc..d96f349e21 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -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;