mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 11:48:06 +01:00
Fix cancel follow request button sometimes saying “Follow back” (#31934)
This commit is contained in:
parent
c620452fd7
commit
6c76a7a907
2 changed files with 4 additions and 4 deletions
|
@ -75,10 +75,10 @@ export const FollowButton: React.FC<{
|
||||||
label = <LoadingIndicator />;
|
label = <LoadingIndicator />;
|
||||||
} else if (relationship.following && relationship.followed_by) {
|
} else if (relationship.following && relationship.followed_by) {
|
||||||
label = intl.formatMessage(messages.mutual);
|
label = intl.formatMessage(messages.mutual);
|
||||||
} else if (!relationship.following && relationship.followed_by) {
|
|
||||||
label = intl.formatMessage(messages.followBack);
|
|
||||||
} else if (relationship.following || relationship.requested) {
|
} else if (relationship.following || relationship.requested) {
|
||||||
label = intl.formatMessage(messages.unfollow);
|
label = intl.formatMessage(messages.unfollow);
|
||||||
|
} else if (relationship.followed_by) {
|
||||||
|
label = intl.formatMessage(messages.followBack);
|
||||||
} else {
|
} else {
|
||||||
label = intl.formatMessage(messages.follow);
|
label = intl.formatMessage(messages.follow);
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,10 +92,10 @@ const messageForFollowButton = relationship => {
|
||||||
|
|
||||||
if (relationship.get('following') && relationship.get('followed_by')) {
|
if (relationship.get('following') && relationship.get('followed_by')) {
|
||||||
return messages.mutual;
|
return messages.mutual;
|
||||||
} else if (!relationship.get('following') && relationship.get('followed_by')) {
|
|
||||||
return messages.followBack;
|
|
||||||
} else if (relationship.get('following') || relationship.get('requested')) {
|
} else if (relationship.get('following') || relationship.get('requested')) {
|
||||||
return messages.unfollow;
|
return messages.unfollow;
|
||||||
|
} else if (relationship.get('followed_by')) {
|
||||||
|
return messages.followBack;
|
||||||
} else {
|
} else {
|
||||||
return messages.follow;
|
return messages.follow;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue