1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-10 05:42:29 +03:00

Add way to track posthog user properties and send numSpaces (#7716)

This commit is contained in:
Michael Telatynski
2022-02-09 09:21:56 +00:00
committed by GitHub
parent c01d46d7ff
commit 91ccbe4395
8 changed files with 43 additions and 22 deletions

View File

@@ -879,10 +879,10 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
});
}
break;
case 'sync_state':
case 'MatrixActions.sync':
if (!this.state.matrixClientIsReady) {
this.setState({
matrixClientIsReady: this.context && this.context.isInitialSyncComplete(),
matrixClientIsReady: this.context?.isInitialSyncComplete(),
}, () => {
// send another "initial" RVS update to trigger peeking if needed
this.onRoomViewStoreUpdate(true);