Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2844b57

Browse files
author
Luke Barnard
committed
Re-add useful comment
1 parent b59de79 commit 2844b57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/structures/MatrixChat.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,8 @@ module.exports = React.createClass({
12031203
} else if (screen.indexOf('user/') == 0) {
12041204
const userId = screen.substring(5);
12051205

1206+
// Wait for the first sync so that `getRoom` gives us a room object if it's
1207+
// in the sync response
12061208
const waitFor = this.firstSyncPromise ?
12071209
this.firstSyncPromise.promise : Promise.resolve();
12081210
waitFor.then(() => {

0 commit comments

Comments
 (0)