Deprecated /(un)follow commands and respective usercard action (#3078)

/(un)follow commands are marked as deprecated and link to the issue this PR is closing.
follow button on the usercard is removed completely

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
This commit is contained in:
Paweł
2021-08-04 22:41:27 +02:00
committed by GitHub
parent 28dcdb238b
commit 0c5abb8149
9 changed files with 17 additions and 270 deletions
-17
View File
@@ -186,23 +186,6 @@ void TwitchAccount::unblockUser(QString userId, std::function<void()> onSuccess,
std::move(onFailure));
}
void TwitchAccount::checkFollow(const QString targetUserID,
std::function<void(FollowResult)> onFinished)
{
const auto onResponse = [onFinished](bool following, const auto &record) {
if (!following)
{
onFinished(FollowResult_NotFollowing);
return;
}
onFinished(FollowResult_Following);
};
getHelix()->getUserFollow(this->getUserId(), targetUserID, onResponse,
[] {});
}
SharedAccessGuard<const std::set<TwitchUser>> TwitchAccount::accessBlocks()
const
{