mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-06-04 16:52:01 +00:00
ui: disable relay management (#6951)
This commit is contained in:
+6
@@ -87,6 +87,8 @@ private fun ChannelRelaysLayout(
|
||||
minHeight = 54.dp,
|
||||
padding = PaddingValues(horizontal = DEFAULT_PADDING)
|
||||
) {
|
||||
// TODO [relays] re-enable when relay management ships
|
||||
/*
|
||||
if (groupInfo.isOwner && member.canBeRemoved(groupInfo)) {
|
||||
DefaultDropdownMenu(showMenu) {
|
||||
ItemAction(generalGetString(MR.strings.button_remove_relay), painterResource(MR.images.ic_delete), color = MaterialTheme.colors.error, onClick = {
|
||||
@@ -95,6 +97,7 @@ private fun ChannelRelaysLayout(
|
||||
})
|
||||
}
|
||||
}
|
||||
*/
|
||||
val statusText = if (groupInfo.isOwner) {
|
||||
ownerRelayStatusText(member, groupRelays)
|
||||
} else {
|
||||
@@ -106,6 +109,8 @@ private fun ChannelRelaysLayout(
|
||||
}
|
||||
SectionTextFooter(generalGetString(MR.strings.chat_relays_forward_messages))
|
||||
}
|
||||
// TODO [relays] re-enable when relay management ships
|
||||
/*
|
||||
if (groupInfo.isOwner) {
|
||||
SectionView {
|
||||
SectionItemView(click = {
|
||||
@@ -132,6 +137,7 @@ private fun ChannelRelaysLayout(
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
SectionBottomSpacer()
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -420,7 +420,8 @@ fun GroupMemberInfoLayout(
|
||||
@Composable
|
||||
fun ModeratorDestructiveSection() {
|
||||
val canBlockForAll = member.canBlockForAll(groupInfo)
|
||||
val canRemove = member.canBeRemoved(groupInfo)
|
||||
// TODO [relays] re-enable when relay management ships
|
||||
val canRemove = member.canBeRemoved(groupInfo) && member.memberRole != GroupMemberRole.Relay
|
||||
if (canBlockForAll || canRemove) {
|
||||
SectionDividerSpaced(maxBottomPadding = false)
|
||||
SectionView {
|
||||
|
||||
Reference in New Issue
Block a user