Skip to content

Commit d82f8e4

Browse files
Just-InsaneCopilot
andcommitted
revert(SyncStatus): restore upstream connecting banner condition
The previous change narrowed the 'Connecting...' banner to only show on reconnect/error. Reverting to upstream's condition: stateData.previous !== SyncState.Syncing Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9199a87 commit d82f8e4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/app/pages/client/SyncStatus.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { MatrixClient, SyncState } from '$types/matrix-sdk';
1+
import type { MatrixClient } from '$types/matrix-sdk';
2+
import { SyncState } from '$types/matrix-sdk';
23
import { useCallback, useState } from 'react';
34
import { Box, config, Line, Text } from 'folds';
45
import * as Sentry from '@sentry/react';
@@ -47,7 +48,7 @@ export function SyncStatus({ mx }: SyncStatusProps) {
4748
(stateData.current === SyncState.Prepared ||
4849
stateData.current === SyncState.Syncing ||
4950
stateData.current === SyncState.Catchup) &&
50-
(stateData.previous === SyncState.Reconnecting || stateData.previous === SyncState.Error)
51+
stateData.previous !== SyncState.Syncing
5152
) {
5253
return (
5354
<Box direction="Column" shrink="No">

0 commit comments

Comments
 (0)