diff --git a/app/src/main/java/com/keylesspalace/tusky/viewmodel/AccountViewModel.kt b/app/src/main/java/com/keylesspalace/tusky/viewmodel/AccountViewModel.kt index e12b084ef..10bb83551 100644 --- a/app/src/main/java/com/keylesspalace/tusky/viewmodel/AccountViewModel.kt +++ b/app/src/main/java/com/keylesspalace/tusky/viewmodel/AccountViewModel.kt @@ -83,7 +83,8 @@ class AccountViewModel @Inject constructor( } fun changeFollowState(id: String) { - if (relationshipData.value?.data?.following == true) { + val relationship = relationshipData.value?.data + if (relationship?.following == true || relationship?.requested == true) { changeRelationship(RelationShipAction.UNFOLLOW, id) } else { changeRelationship(RelationShipAction.FOLLOW, id)