Merge pull request #166 from krawieck/fix/private-follows
This commit is contained in:
commit
8ffe97961e
|
@ -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
|
- Titles on some pages, have an appear affect when scrolling down
|
||||||
- Long pressing comments now has a ripple effect
|
- Long pressing comments now has a ripple effect
|
||||||
- Nerd stuff now contains more nerd stuff
|
- 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
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ class CommunitiesTab extends HookWidget {
|
||||||
savedOnly: false,
|
savedOnly: false,
|
||||||
userId:
|
userId:
|
||||||
accountsStore.defaultTokenFor(instanceHost).payload.id,
|
accountsStore.defaultTokenFor(instanceHost).payload.id,
|
||||||
|
auth: accountsStore.defaultTokenFor(instanceHost).raw,
|
||||||
))
|
))
|
||||||
.then((e) => e.follows),
|
.then((e) => e.follows),
|
||||||
)
|
)
|
||||||
|
|
|
@ -388,8 +388,9 @@ class _AboutTab extends HookWidget {
|
||||||
..sort((a, b) => a.community.name.compareTo(b.community.name)))
|
..sort((a, b) => a.community.name.compareTo(b.community.name)))
|
||||||
communityTile(
|
communityTile(
|
||||||
comm.community.name, comm.community.icon, comm.community.id),
|
comm.community.name, comm.community.icon, comm.community.id),
|
||||||
divider
|
divider,
|
||||||
],
|
],
|
||||||
|
if (userDetails.follows.isNotEmpty) ...[
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Center(
|
title: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -398,22 +399,12 @@ class _AboutTab extends HookWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (userDetails.follows.isNotEmpty)
|
|
||||||
for (final comm
|
for (final comm
|
||||||
in userDetails.follows
|
in userDetails.follows
|
||||||
..sort((a, b) => a.community.name.compareTo(b.community.name)))
|
..sort((a, b) => a.community.name.compareTo(b.community.name)))
|
||||||
communityTile(
|
communityTile(
|
||||||
comm.community.name, comm.community.icon, comm.community.id)
|
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),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue