mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Auto adapt the list of friends to show
This commit is contained in:
		@@ -125,8 +125,12 @@ abstract class MainController extends State<MainRoute> {
 | 
			
		||||
  void openGroupsListPage() => pushPage(PageInfo(child: GroupsListScreen()));
 | 
			
		||||
 | 
			
		||||
  /// Display the list of friends of a user
 | 
			
		||||
  void openUserFriendsList(int userID) =>
 | 
			
		||||
      pushPage(PageInfo(child: OtherUserFriendsListScreen(userID: userID)));
 | 
			
		||||
  void openUserFriendsList(int id) {
 | 
			
		||||
    if (id != userID())
 | 
			
		||||
      pushPage(PageInfo(child: OtherUserFriendsListScreen(userID: id)));
 | 
			
		||||
    else
 | 
			
		||||
      openFriendsList();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Push a new widget
 | 
			
		||||
  void push(Widget w,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user