kopia lustrzana https://github.com/ryukoposting/Signal-Android
Check whether recipient is blockable before allowing blocking.
rodzic
31a815013e
commit
0edfb0bd68
|
@ -138,7 +138,7 @@ sealed class ConversationSettingsViewModel(
|
||||||
isSearchAvailable = true
|
isSearchAvailable = true
|
||||||
),
|
),
|
||||||
disappearingMessagesLifespan = recipient.expiresInSeconds,
|
disappearingMessagesLifespan = recipient.expiresInSeconds,
|
||||||
canModifyBlockedState = !recipient.isSelf,
|
canModifyBlockedState = !recipient.isSelf && RecipientUtil.isBlockable(recipient),
|
||||||
specificSettingsState = state.requireRecipientSettingsState().copy(
|
specificSettingsState = state.requireRecipientSettingsState().copy(
|
||||||
contactLinkState = when {
|
contactLinkState = when {
|
||||||
recipient.isSelf -> ContactLinkState.NONE
|
recipient.isSelf -> ContactLinkState.NONE
|
||||||
|
|
Ładowanie…
Reference in New Issue