fix bug where revoking a follow request was not possible
This commit is contained in:
parent
5538c8c5e7
commit
0102a4bd60
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ class AccountViewModel @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
fun changeFollowState(id: String) {
|
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)
|
changeRelationship(RelationShipAction.UNFOLLOW, id)
|
||||||
} else {
|
} else {
|
||||||
changeRelationship(RelationShipAction.FOLLOW, id)
|
changeRelationship(RelationShipAction.FOLLOW, id)
|
||||||
|
|
Loading…
Reference in a new issue