From 2844b574d59124d3957d20da75a08024ef5d2dbd Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Mon, 14 Aug 2017 14:41:03 +0100 Subject: [PATCH] Re-add useful comment --- src/components/structures/MatrixChat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index a512d60509..8cb111bf82 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -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(() => {