fix: show extended actions even if blocked by other user
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
9159f33c3b
commit
7c51ae001b
|
|
@ -2,6 +2,7 @@ package chat.revolt.components.screens.settings
|
|||
|
||||
import android.widget.Toast
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.material.icons.Icons
|
||||
|
|
@ -176,10 +177,12 @@ fun UserButtons(
|
|||
Text(stringResource(R.string.user_info_sheet_unblock))
|
||||
}
|
||||
}
|
||||
|
||||
"BlockedOther" -> Box(Modifier.weight(1f))
|
||||
}
|
||||
|
||||
when (user.relationship) {
|
||||
"Friend", "Incoming", "Outgoing", "None" -> {
|
||||
"Friend", "Incoming", "Outgoing", "None", "BlockedOther" -> {
|
||||
Column { // Prevent the dropdown menu from counting towards arrangement spacing
|
||||
IconButton(
|
||||
onClick = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue