Increase max number of blocked users loaded from 100 to 1,000 (#4721)

Also includes a little refactor of how the requests are made & how the blocked users are stored
This commit is contained in:
nerix
2023-07-23 13:26:12 +02:00
committed by GitHub
parent a440f0261a
commit fca57696bb
12 changed files with 267 additions and 85 deletions
+1 -7
View File
@@ -836,13 +836,7 @@ void UserInfoPopup::updateUserData()
});
// get ignore state
bool isIgnoring = false;
if (auto blocks = currentUser->accessBlockedUserIds();
blocks->find(user.id) != blocks->end())
{
isIgnoring = true;
}
bool isIgnoring = currentUser->blockedUserIds().contains(user.id);
// get ignoreHighlights state
bool isIgnoringHighlights = false;
+2 -3
View File
@@ -126,10 +126,9 @@ void IgnoresPage::onShow()
}
QStringList users;
users.reserve(user->blocks().size());
auto blocks = app->accounts->twitch.getCurrent()->accessBlocks();
for (const auto &blockedUser : *blocks)
for (const auto &blockedUser : user->blocks())
{
users << blockedUser.name;
}