1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-24 22:09:21 +00:00

Remove report group icon on groups list if user is already a member of the group

This commit is contained in:
Pierre HUBERT 2022-03-18 20:15:26 +01:00
parent 49a1098a28
commit f624971717

View File

@ -83,13 +83,11 @@ class _GroupsListScreenState extends SafeState<GroupsListScreen> {
onPressed: () => _deleteGroup(g)),
// Report button
srvConfig!.isReportingEnabled
srvConfig!.isReportingEnabled && !g.isAtLeastMember
? IconButton(
visualDensity: VisualDensity.compact,
onPressed: () => _reportGroup(g),
icon: Icon(
Icons.flag,
size: 15.0,
),
)
: Container()