Removed a few member options under debug flag

This commit is contained in:
SessionHero01 2024-10-24 16:13:45 +11:00
parent 2fa433585a
commit d21cb39824
No known key found for this signature in database

View File

@ -41,6 +41,7 @@ import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController import androidx.navigation.compose.rememberNavController
import com.squareup.phrase.Phrase import com.squareup.phrase.Phrase
import kotlinx.serialization.Serializable import kotlinx.serialization.Serializable
import network.loki.messenger.BuildConfig
import network.loki.messenger.R import network.loki.messenger.R
import org.session.libsession.utilities.StringSubstitutionConstants.GROUP_NAME_KEY import org.session.libsession.utilities.StringSubstitutionConstants.GROUP_NAME_KEY
import org.session.libsession.utilities.StringSubstitutionConstants.NAME_KEY import org.session.libsession.utilities.StringSubstitutionConstants.NAME_KEY
@ -343,12 +344,12 @@ private fun MemberOptionsDialog(
if (member.canRemove) { if (member.canRemove) {
this += BottomOptionsDialogItem( this += BottomOptionsDialogItem(
title = context.resources.getQuantityString(R.plurals.groupRemoveUserOnly, 1), title = context.resources.getQuantityString(R.plurals.groupRemoveUserOnly, 1),
iconRes = R.drawable.ic_delete, iconRes = R.drawable.ic_delete_24,
onClick = onRemove onClick = onRemove
) )
} }
if (member.canPromote) { if (BuildConfig.DEBUG && member.canPromote) {
this += BottomOptionsDialogItem( this += BottomOptionsDialogItem(
title = context.getString(R.string.adminPromoteToAdmin), title = context.getString(R.string.adminPromoteToAdmin),
iconRes = R.drawable.ic_profile_default, iconRes = R.drawable.ic_profile_default,
@ -356,7 +357,7 @@ private fun MemberOptionsDialog(
) )
} }
if (member.canResendInvite) { if (BuildConfig.DEBUG && member.canResendInvite) {
this += BottomOptionsDialogItem( this += BottomOptionsDialogItem(
title = "Resend invite", title = "Resend invite",
iconRes = R.drawable.ic_arrow_left, iconRes = R.drawable.ic_arrow_left,
@ -364,7 +365,7 @@ private fun MemberOptionsDialog(
) )
} }
if (member.canResendPromotion) { if (BuildConfig.DEBUG && member.canResendPromotion) {
this += BottomOptionsDialogItem( this += BottomOptionsDialogItem(
title = "Resend promotion", title = "Resend promotion",
iconRes = R.drawable.ic_arrow_left, iconRes = R.drawable.ic_arrow_left,