Attempt to fix connection request adjudication error message if connection status is none.

merge-requests/67/merge
Hank Grabowski 2024-12-19 15:44:19 -05:00
rodzic f8e52f36e4
commit 4eba9eb6a9
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -75,6 +75,7 @@ class _FollowRequestAdjudicationScreenState
switch (contactStatus) {
case ConnectionStatus.theyFollowYou:
case ConnectionStatus.youFollowThem:
case ConnectionStatus.unknown:
case ConnectionStatus.none:
body = _buildMainPanel(context, contact, profile);
break;
@ -82,7 +83,6 @@ class _FollowRequestAdjudicationScreenState
body = const Text('Already allowed them to connect');
break;
case ConnectionStatus.you:
case ConnectionStatus.unknown:
body = Text(loading
? 'Loading...'
: 'Invalid state, nothing to do here: ${contact.status}');
@ -90,7 +90,7 @@ class _FollowRequestAdjudicationScreenState
case ConnectionStatus.blocked:
// we should never get here because a blocked user shouldn't be allowed to create a connection request.
body = const Text(
'Use is blocked. Unblock to accept connection request.',
'User is blocked. Unblock to accept connection request.',
);
break;
}