kopia lustrzana https://gitlab.com/mysocialportal/relatica
Attempt to fix connection request adjudication error message if connection status is none.
rodzic
f8e52f36e4
commit
4eba9eb6a9
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue