From 88372562761cd426be3325898e817e2b56d27bf8 Mon Sep 17 00:00:00 2001 From: Brice-W Date: Tue, 15 Jun 2021 17:21:24 +1000 Subject: [PATCH] delete listener if current user is admin --- .../securesms/loki/activities/EditClosedGroupMembersAdapter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/loki/activities/EditClosedGroupMembersAdapter.kt b/app/src/main/java/org/thoughtcrime/securesms/loki/activities/EditClosedGroupMembersAdapter.kt index ab5e79d105..4a451ba222 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/loki/activities/EditClosedGroupMembersAdapter.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/loki/activities/EditClosedGroupMembersAdapter.kt @@ -56,6 +56,8 @@ class EditClosedGroupMembersAdapter( if (unlocked) { viewHolder.view.setOnClickListener { this.memberClickListener?.invoke(member) } + } else { + viewHolder.view.setOnClickListener(null) } }