diff --git a/CHANGELOG.md b/CHANGELOG.md index 17b51a3..709dbd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ WARNING: due to some internal changes your local settings will be reset (logged - Titles on some pages, have an appear affect when scrolling down - Long pressing comments now has a ripple effect - Nerd stuff now contains more nerd stuff +- Communities that a user follows will no longer appear on a user's profile in most scenarios ### Fixed diff --git a/lib/pages/communities_tab.dart b/lib/pages/communities_tab.dart index d263374..d8c769f 100644 --- a/lib/pages/communities_tab.dart +++ b/lib/pages/communities_tab.dart @@ -53,6 +53,7 @@ class CommunitiesTab extends HookWidget { savedOnly: false, userId: accountsStore.defaultTokenFor(instanceHost).payload.id, + auth: accountsStore.defaultTokenFor(instanceHost).raw, )) .then((e) => e.follows), ) diff --git a/lib/widgets/user_profile.dart b/lib/widgets/user_profile.dart index 0e46088..6160ca4 100644 --- a/lib/widgets/user_profile.dart +++ b/lib/widgets/user_profile.dart @@ -388,32 +388,23 @@ class _AboutTab extends HookWidget { ..sort((a, b) => a.community.name.compareTo(b.community.name))) communityTile( comm.community.name, comm.community.icon, comm.community.id), - divider + divider, ], - ListTile( - title: Center( - child: Text( - 'Subscribed:', - style: theme.textTheme.headline6.copyWith(fontSize: 18), + if (userDetails.follows.isNotEmpty) ...[ + ListTile( + title: Center( + child: Text( + 'Subscribed:', + style: theme.textTheme.headline6.copyWith(fontSize: 18), + ), ), ), - ), - if (userDetails.follows.isNotEmpty) for (final comm in userDetails.follows ..sort((a, b) => a.community.name.compareTo(b.community.name))) communityTile( comm.community.name, comm.community.icon, comm.community.id) - else - const Padding( - padding: EdgeInsets.only(top: 8), - child: Center( - child: Text( - 'this user does not subscribe to any community', - style: TextStyle(fontStyle: FontStyle.italic), - ), - ), - ) + ] ], ); }