From f6249717178d3ee012576d41aee598923a82d25a Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 18 Mar 2022 20:15:26 +0100 Subject: [PATCH] Remove report group icon on groups list if user is already a member of the group --- lib/ui/screens/groups_list_screen.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ui/screens/groups_list_screen.dart b/lib/ui/screens/groups_list_screen.dart index ea1c554..2d34de8 100644 --- a/lib/ui/screens/groups_list_screen.dart +++ b/lib/ui/screens/groups_list_screen.dart @@ -83,13 +83,11 @@ class _GroupsListScreenState extends SafeState { 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()