1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 22:39:22 +00:00

Auto adapt the list of friends to show

This commit is contained in:
Pierre HUBERT 2020-05-16 17:24:47 +02:00
parent bf2ba03912
commit 6528ef5bc2

View File

@ -125,8 +125,12 @@ abstract class MainController extends State<MainRoute> {
void openGroupsListPage() => pushPage(PageInfo(child: GroupsListScreen())); void openGroupsListPage() => pushPage(PageInfo(child: GroupsListScreen()));
/// Display the list of friends of a user /// Display the list of friends of a user
void openUserFriendsList(int userID) => void openUserFriendsList(int id) {
pushPage(PageInfo(child: OtherUserFriendsListScreen(userID: userID))); if (id != userID())
pushPage(PageInfo(child: OtherUserFriendsListScreen(userID: id)));
else
openFriendsList();
}
/// Push a new widget /// Push a new widget
void push(Widget w, void push(Widget w,