mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix a bug on friends list screen
This commit is contained in:
		@@ -37,8 +37,7 @@ class _FriendsListScreenState extends SafeState<FriendsListScreen> {
 | 
			
		||||
  _ErrorsLevel _error = _ErrorsLevel.NONE;
 | 
			
		||||
  FriendsList? _friendsList;
 | 
			
		||||
  late UsersList _usersInfo;
 | 
			
		||||
  GlobalKey<RefreshIndicatorState> _refreshIndicatorKey =
 | 
			
		||||
      GlobalKey<RefreshIndicatorState>();
 | 
			
		||||
  final _refreshIndicatorKey = GlobalKey<RefreshIndicatorState>();
 | 
			
		||||
 | 
			
		||||
  /// Useful setters
 | 
			
		||||
  set error(_ErrorsLevel err) => setState(() => _error = err);
 | 
			
		||||
@@ -61,7 +60,10 @@ class _FriendsListScreenState extends SafeState<FriendsListScreen> {
 | 
			
		||||
 | 
			
		||||
  /// Refresh the list of friends
 | 
			
		||||
  Future<void> _refreshList() async {
 | 
			
		||||
    await _refreshIndicatorKey.currentState!.show();
 | 
			
		||||
    if (_refreshIndicatorKey.currentState != null)
 | 
			
		||||
      await _refreshIndicatorKey.currentState!.show();
 | 
			
		||||
    else
 | 
			
		||||
      await _getList();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Load the list of friends
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user