Skip to content

Commit

Permalink
Unhide ContactGroup Details
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Jodlowski authored and MargeBot committed May 8, 2024
1 parent a7d6223 commit e985bdb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ internal fun ContactGroupsScreenContent(
ContactListGroupItem(
modifier = Modifier.animateItemPlacement(),
contact = contactGroupItemUiModel,
actions = actions,
isContactGroupsCrudEnabled = state.isContactGroupsCrudEnabled
actions = actions
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import ch.protonmail.android.mailcommon.presentation.NO_CONTENT_DESCRIPTION
import ch.protonmail.android.mailcommon.presentation.compose.MailDimens
import ch.protonmail.android.mailcontact.presentation.R
import ch.protonmail.android.mailcontact.presentation.model.ContactGroupItemUiModel
import ch.protonmail.android.mailcontact.presentation.utils.ContactFeatureFlags
import me.proton.core.compose.theme.ProtonDimens
import me.proton.core.compose.theme.ProtonTheme
import me.proton.core.compose.theme.defaultNorm
Expand All @@ -49,15 +50,14 @@ import me.proton.core.compose.theme.defaultSmallWeak
internal fun ContactListGroupItem(
modifier: Modifier = Modifier,
contact: ContactGroupItemUiModel,
isContactGroupsCrudEnabled: Boolean,
actions: ContactListScreen.Actions
) {
Row(
modifier = modifier
.fillMaxWidth()
.clickable(
role = Role.Button,
enabled = isContactGroupsCrudEnabled,
enabled = ContactFeatureFlags.ContactGroupDetails.value,
onClick = {
actions.onContactGroupSelected(contact.labelId)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ enum class ContactFeatureFlags(val value: Boolean) {

// Send group message
ContactGroupSendMessage(BuildConfig.DEBUG),
ContactGroupDetails(true),

// Contact import
ContactImport(false),
Expand Down

0 comments on commit e985bdb

Please sign in to comment.