From a75dfca73eb4d1435107ea72a63976a987d82590 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 15 Jun 2020 12:11:45 +0100 Subject: [PATCH] Comment on when we start waiting for the first sync --- src/components/structures/MatrixChat.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/structures/MatrixChat.tsx b/src/components/structures/MatrixChat.tsx index 4ce29ea772..f581ec9114 100644 --- a/src/components/structures/MatrixChat.tsx +++ b/src/components/structures/MatrixChat.tsx @@ -1886,6 +1886,8 @@ export default class MatrixChat extends React.PureComponent { promisesList.push(cli.downloadKeys([cli.getUserId()])); } + // Now update the state to sya we're waiting for the first sync to complete rather + // than for the login to finish. this.setState({ pendingInitialSync: true }); await Promise.all(promisesList);