Migrated follow and unfollow methods to Helix API (#2306)

This commit is contained in:
Paweł
2020-12-22 09:55:58 +01:00
committed by GitHub
parent 89c74e03d6
commit 2f5df3db4a
8 changed files with 118 additions and 87 deletions
+10 -4
View File
@@ -386,8 +386,11 @@ void UserInfoPopup::installEvents()
{
case Qt::CheckState::Unchecked: {
this->ui_.follow->setEnabled(false);
currentUser->unfollowUser(this->userId_,
reenableFollowCheckbox);
getHelix()->unfollowUser(currentUser->getUserId(),
this->userId_,
reenableFollowCheckbox, [] {
//
});
}
break;
@@ -398,8 +401,11 @@ void UserInfoPopup::installEvents()
case Qt::CheckState::Checked: {
this->ui_.follow->setEnabled(false);
currentUser->followUser(this->userId_,
reenableFollowCheckbox);
getHelix()->followUser(currentUser->getUserId(),
this->userId_,
reenableFollowCheckbox, [] {
//
});
}
break;
}