From dd56f317051aba2c71909764c423773af5f0131b Mon Sep 17 00:00:00 2001 From: HuyNguyen Date: Fri, 3 May 2024 00:39:05 +0700 Subject: [PATCH] TW-1734 Update condition for remove from group --- lib/pages/profile_info/profile_info_body/profile_info_body.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/profile_info/profile_info_body/profile_info_body.dart b/lib/pages/profile_info/profile_info_body/profile_info_body.dart index d174b61aec..894b79c94d 100644 --- a/lib/pages/profile_info/profile_info_body/profile_info_body.dart +++ b/lib/pages/profile_info/profile_info_body/profile_info_body.dart @@ -162,7 +162,7 @@ class ProfileInfoBodyController extends State { List profileInfoActions() { return [ ProfileInfoActions.sendMessage, - ProfileInfoActions.removeFromGroup, + if (user!.canKick) ProfileInfoActions.removeFromGroup, ]; }