From 8e7602ce3da2cc6b2027d5be11590befa3d5d3d9 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Sat, 20 Feb 2021 01:44:16 +0100 Subject: [PATCH 1/4] Add token when fetching communities --- lib/pages/communities_tab.dart | 1 + 1 file changed, 1 insertion(+) 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), ) From 8cc4246569617ce2cf21d8354feb156ce0f572c6 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Mon, 22 Feb 2021 19:47:38 +0100 Subject: [PATCH 2/4] Hide followed communities --- lib/widgets/user_profile.dart | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) 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), - ), - ), - ) + ] ], ); } From 4a5358722ffb1b92b7ee4d7ce54c4c5cb7b5b4a0 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Mon, 22 Feb 2021 19:48:54 +0100 Subject: [PATCH 3/4] Add changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17b51a3..d19986e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,10 @@ WARNING: due to some internal changes your local settings will be reset (logged - Time of posts is now displayed properly. Unless you live in UTC zone, then you won't notice a difference - Fixed a bug where links would not work on Android 11 +### Changed + +- Communities that a user follows will no longer appear on a user's profile in most scenarios + ## v0.2.3 - 2021-02-09 Lemmur is now available on the [play store](https://play.google.com/store/apps/details?id=com.krawieck.lemmur) and [f-droid](https://f-droid.org/packages/com.krawieck.lemmur) From ce9c0337dbe9e32a8dbeedb39bc2b1b099e353e5 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Thu, 25 Feb 2021 21:56:06 +0100 Subject: [PATCH 4/4] Merge changed in changelog --- CHANGELOG.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d19986e..709dbd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,16 +14,13 @@ 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 - Time of posts is now displayed properly. Unless you live in UTC zone, then you won't notice a difference - Fixed a bug where links would not work on Android 11 -### Changed - -- Communities that a user follows will no longer appear on a user's profile in most scenarios - ## v0.2.3 - 2021-02-09 Lemmur is now available on the [play store](https://play.google.com/store/apps/details?id=com.krawieck.lemmur) and [f-droid](https://f-droid.org/packages/com.krawieck.lemmur)